react-static
Version:
A progressive static site generator for React
22 lines (16 loc) • 537 B
Markdown
To use this template, run `react-static create` and use the `typescript` template.
`react-static-typescript-plugin` supports path aliases [since v3.1](https://github.com/react-static/react-static/pull/963#issuecomment-455596728). It has been set up in this template.
```js
// tsconfig.json
{
// ...
"paths": {
"@components/*": ["src/components/*"]
},
// ...
}
// this works in your React app
import FancyDiv from '@components/FancyDiv'
```