-
Create a React app and add CRAX
$ npx create-react-app my-app $ npm i -D crax
-
Update the package.json scripts
"scripts": { "crax": "crax" },
-
Run the CRAX commands - setup:
$ npm run crax init
- This will create a
.crax
file in the root of your application
- This will create a
- Create new react components
```
$ npm run crax component
```