Installation
Setting Up the Project#
npm create vite @4.1.0
- Name: game-hub
- Library: React
- Language: Typescript
cd game-hub
npm i
npm run dev
code .
git init
git 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 |
|
2024-07-11 00:02 2024-07-20 22:22