-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create more than one pages? #344
Comments
Is that necessary to have other html files? Did you consider using https://github.com/reactjs/react-router to set up routing in the app? |
@zebapy I am new to reactjs, I have not tried react-router yet. Thanks for your suggestion, I am going to try it. Thanks! |
@Batur24 the tool you're definitely looking for is React Router: https://github.com/reactjs/react-router Typically in React you wont be creating new |
Before using React Router, I would recommend to get familiar with HTML5 History API and experiment with it on a small page just to get a sense of the problem React Router is solving. |
@eanplatter, @gaearon Thanks a lot! I will go to check it. |
How can I create more than two pages rather than just index.html? What's the structure like?
for example, I would like to add another page "fun.html" along with "index.html", and I want to have "fun.js", "fun.css" under src file. But it doesn't work.
How to do that? Thanks!
The text was updated successfully, but these errors were encountered: