use render() instead of renderComponent