1.0.4 • Published 9 years ago

babel-plugin-react-hot v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

babel-plugin-react-hot

Babel plugin using react-hot-api to add hot reloading to React.createClass and all ES6 classes with a render method.

Most of this can be accredited to babel-plugin-react-hotify. This particular repo was made to support the original react-hot-api as a Babel plugin.

Installation

jspm install babel-plugin-react-hot=github:loggur/babel-plugin-react-hot

or

jspm install babel-plugin-react-hot=npm:babel-plugin-react-hot

or

npm install babel-plugin-react-hot

Usage

Simply add the module to either .babelrc or options.plugins for babel.transform. See Babel's plugin docs.

To use this with webpack without manually adding module.hot.accept() to the bottom of your modules, use webpack-module-hot-accept.

License

MIT