In this workshop, you'll have to install:
- nodejs: JavaScript runtime
- npm: node package manager
- npx: node_modules command executor
- ESlint VSCode extension
- react devtools extension (firefox/chrome)
To install node:
- Fedora:
sudo dnf install nodejs -y - Ubuntu:
sudo apt install nodejs npm -y
Then sudo npm install -g npx
First off, create your project with npx:
npx create-react-app react-workshop-poc --template typescript && cd react-workshop-pocThen, install the dependencies we will be using for build our app:
npm install @mui/material @emotion/react @emotion/styled @mui/icons-material
npm install -D @types/material-ui💡 You will figure out later their purposes!
All you have to do now is to open the react-workshop-poc folder in VSCode (if you just open the src folder, ESlint won't be able to give warnings)
Finally, launch the app (in the react-workshop-poc folder once again):
npm startIf it opens a tab in your browser with an atom logo spinning, then you can start the exercises!