项目作者: MyBitFoundation

项目描述 :
🔷 MyBit Website New Generation
高级语言: TypeScript
项目地址: git://github.com/MyBitFoundation/MyBit.website.git
创建时间: 2018-08-26T16:09:04Z
项目社区:https://github.com/MyBitFoundation/MyBit.website

开源协议:GNU General Public License v3.0

下载


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.

  1. // tsconfig.json
  2. {
  3. // ...
  4. "paths": {
  5. "@components/*": ["src/components/*"]
  6. },
  7. // ...
  8. }
  9. // this works in your React app
  10. import FancyDiv from '@components/FancyDiv'