npm install react-router-dom
import { BrowserRouter as Router, Switch, Route} from 'react-router-dom'
you can rename longer import by the example of 'BrowserRouter' above.
Creating a React App
npx create-react-app NAMEOFYOURAPP
cd NAMEOFYOURAPP
npm install
.npm start
to see if the app was set up correctly.Setting Up Testing
npm i enzyme -D
npm install enzyme-adapter-react-16 -D
Edited and formatted by ericwm76
Eric's gist https://gist.github.com/ericwm76/e1204fc03f14af4429add8225ff55f71
npx create-react-app NAME-OF-APP
cd NAME-OF-APP
npm install
.npm start
to see if the app was set up correctly.