How to render a react component on any other page other than index.html
问题 I created a basic react app with npx create-react-app I can create components in the index.js and I'm able to render them to an element in the index.html . However that's the only page I can render them too, I can't for example use the same component on the login.html page or any other page other than index.html I'm testing this with npm start . 回答1: Commonly React is used for single page applications, so you just render the app in a single page, then use routing (with react-router commonly)