Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.01 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.01 KB

Quickstart for React

Mostly a combination of the React and Webpack example on the TypeScript website and instructions by Robin Rendle.

  • Run yarn install
  • Run yarn start
  • Chrome will open, load index.html and will reload after any compile

Create duplicate repo able to merge updates

  • git clone git@github.com:averaart/react-typescript-playground.git my-new-playground
  • cd my-new-playground
  • git remote set-url origin git@github.com:<username>/<my-new-playground>.git
  • git push
  • git remote add base-playground git@github.com:averaart/react-typescript-playground.git
  • git fetch base-playground

Pull in updates to the original repo:

  • git fetch base-playground
  • git merge --no-ff --no-edit base-playground/master

Todo

  • figure out if there's any actual difference between yarn dev and yarn start, as they both seem to compile and reload on changes.