Skip to content

(Almost) minimal live-editing boilerplate for your next ReactJS/Typescript project

License

Notifications You must be signed in to change notification settings

wmaurer/react-hot-boilerplate-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation Notice

This boilerplate is based on react-hot-loader which is deprecated. A new boilerplate which uses React Transform, can be found here.

react-hot-boilerplate-ts

An (almost) minimal dev environment to enable live-editing Typescript/ReactJS components.

This a copy of Dan Abramov's react-hot-boilerplate (https://github.com/gaearon/react-hot-boilerplate), but uses ts-loader/Typescript instead of babel-loader/Babel.

Usage

npm install
npm start
open http://localhost:3000

Extras

To show the advantages of Typescript, the typings for React have been included.

The App component has a name property which has been defined on the interface (IAppProps) for props, i.e. the first generic parameter to Component.

If you were to remove the name property when using the component (in index.tsx), then you'll receive a typescript compile error.

If you're using a suitably advanced editor or editor plugin, you'll also get intellisense and edit-time error messages. This works with the atom editor and the atom atom-typescript plugin.

TODO

tslint

Dependencies

Resources

About

(Almost) minimal live-editing boilerplate for your next ReactJS/Typescript project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published