React Patch
Work in progress.
Generic React component patcher.
A future engine for React Hot Loader.
Usage
Intended to be used from hot reloading tools like React Hot Loader.
If you’re an application developer, it’s unlikely you’ll want to use it directly.
; { return <div>Before hot update</div>; } { return <div>After hot update</div>; }
Without React Patch:
const rootEl = document;React;React; // will reset state and kill DOM :-(
With React Patch:
;const patch = ; const PatchedComponentVersion1 = ;React; ; // will keep the state and DOM
License
MIT