React: remove legacy renderComponent, use createFactory