/base-react-typescrpit

Base code when start project using react & typescript

Primary LanguageJavaScript

Vroom Reactjs

Base code when we want to start React project using Typescript

Why Typescript for React?

  1. Typescript config surprisingly easier and simpler to use rather than traditional webpack + babel + flow
  2. Typescript offer more features than flow and if we start new project and want typehint, using Typescript is more reasonable

How to install

  1. yarn install
  2. yarn dev to run in development mode with watched files

How to develop

  1. Use .ts file extension for Typescript file
  2. Use .tsx file extension for Typescript file that has React syntax

How to build & deploy

  1. yarn install
  2. yarn lint
  3. yarn build
  4. Load the build/widget.js in your server