React Hotify
This project is a successor of React Hot API.
It has less features and is much less mature.
For now, use at your own risk.
Read The Death of React Hot Loader for some context.
Usage
Annotate component classes with the decorator this library exports. The decorator accepts one parameter: a string uniquely identifying the given component class in your application. It should persist between the live edit reloads. For example, you can use the module filename concatenated with the class name.
You should generate these decorator calls (e.g. with a Babel plugin) so users don't have to write them.
Examples
Webpack
;; // Your tool should generate this @ // Your tool should generate this { return <h1>hmm</h1> ; } @ // Your tool should generate thisComponent { return <Other /> ; } // Opt-in to Webpack hot module replacement for the modulemodulehotaccept; // Your tool should generate this
Browserify
???
Tests
This time, we've got tests!
npm install
npm test
License
MIT