Creating a React App
- In the terminal run
npx create-react-app NAMEOFYOURAPP - Cd into the new directory:
cd NAMEOFYOURAPP - Run
npm install. - You can run
npm startto see if the app was set up correctly.
Setting Up Testing
- Install enzyme:
npm i enzyme -D - Install enzyme-adapter-react-16:
npm install enzyme-adapter-react-16 -D