01. Installation
Setting Up the Project#
npm create vite@4.1.0- Name: game-hub
- Library: React
- Language: Typescript
cd game-hubnpm inpm run devcode .git initgit add .git commit -m "Initial commit"
Installing Chakra UI#
To use Chakra UI in your project, run the following commands in your terminal:
npm i @chakra-ui/react @emotion/react @emotion/styled framer-motion
After installing Chakra UI, you need to set up the ChakraProvider at the root of your application. This can be either in your index.jsx, index.tsx or App.jsx depending on the framework you use.
| main.tsx | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| App.tsx | |
|---|---|
1 2 3 4 5 6 7 | |