Skip to content

Use webpack to compile React written in TypeScript and launch BrowserSync

Notifications You must be signed in to change notification settings

averaart/react-typescript-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Use webpack to compile React written in TypeScript and launch BrowserSync

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published