gbalbuena / react-static-website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-Static - TypeScript Template

To use this template, run react-static create and use the typescript template.

Path Aliases for Absolute Imports

react-static-typescript-plugin supports path aliases since v3.1. 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'

About


Languages

Language:JavaScript 93.9%Language:TypeScript 4.9%Language:CSS 0.9%Language:HTML 0.3%