4

I'm trying create-react-app recently,I found that it can only process one default page , which called 'index.html'.I want to know ,if my project is multiple-pages , can I develop my front-end with create-react-app?How?
I know I can use react-router to do my job ,however , I still want to find a way to process multiple pages with create-react-app. Am I wrong ?

1 Answer 1

1

Your are not wrong. Probably You are just confused between multiple page app and Single page application. You need to understand and use react-router module along with ReactJS. React router provides routing capability to a react application. (Since using react you are creating a SPA Single Page Application).

For more and indepth information, have a look at this link: https://github.com/ReactTraining/react-router

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! Let me try!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.