Replace deprecated renderComponent() with render()