- yarn start
- yarn build
- yarn deploy
- yarn prod
- react-static v7
- ant.design
To use this template, run react-static create and use the typescript template. react-static-typescript-plugin supports path aliases [since v3.1](react-static/react-static#963 (comment)). It has been set up in this template.
tsconfig.json
{
"paths": {
"@components/*": ["src/components/*"]
},
}
// this works in your React app
import FancyDiv from '@components/FancyDiv'