Chris Bolin 944256c188 Make <tutorial url> explicit | 8 年之前 | |
---|---|---|
.. | ||
modules | 8 年之前 | |
README.md | 8 年之前 | |
index.html | 8 年之前 | |
index.js | 8 年之前 | |
package.json | 8 年之前 | |
webpack.config.js | 8 年之前 |
First you'll need Node.js and the package manager that comes with it: npm.
Once you've got that working, head to the command line where we'll set up our project.
git clone https://github.com/reactjs/react-router-tutorial
cd react-router-tutorial
cd lessons/01-setting-up
npm install
npm start
Now open up http://localhost:8080
Feel free to poke around the code to see how we're using webpack and npm scripts to run the app.
You should see a "Hello React Router" message in the browser.
Open up modules/App.js
and change the text to something like "Hello
". The browser automatically reloads with your new code.