This project shows some basic usage of React.js features, including:
react-router-dom
.gitignore
file to exclude 3rd-party code and autogenerated files from version control trackingpackage.json
with npm to track dependencies and streamline installation.Many of the features of React exhibited in this project are explained at a high level in this prepared lecture presentation.
There are some common practices that we have not included here, since we believe they are distraction’s from a beginner’s ability to master React’s code patterns.
In the project directory, you can run:
npm install
Installs all the dependencies listed in the package.json
configuration file.
This is necessary before running the app, since the 3rd-party dependency code is excluded from version control by the .gitignore
git settings file.
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.