Setup Root Route
In order to see how your app works with these components, you need to set up some routes.
Open up your src/index.js
. You'll define the routes here.
Import components
Import react
, react-dom
, service worker and the display component.
Set up the route
Run your app
Run the npm start
command in your terminal to start up the app.
Your app should look like this now.
Last updated