To create a new application, run the following command:
npx create-react-app auth0-react-qs
Then, install React router and auth0-spa-js:
npm install react-router-dom @auth0/auth0-spa-js
You can run the new application by opening a new terminal and running this command:
This will open a new browser window to
localhost:3000. Now that that's done, let's configure our Auth0 application and add a config file to our React app.