No eject 🎉 No configuration 🎉
yarn add react-hot-reload.macro # or npm install --save react-hot-reload.macro
import React from 'react' +import hot from 'react-hot-reload.macro' ... -export default App +export default hot(App)
That's it. Happy Hacking!
RHL will patch React, replace React-DOM by React-🔥-DOM and work with fiber directly
Since RHL 4.5.0+, you would need to patch react-dom by
Currently only available option without ejecting is using Yarn's name resolution.
yarn add react-dom@npm:@hot-loader/react-dom
(if anyone know another workaround of it, please let me know)
You still can use RHL's APIs. Following the
setConfig() API of RHL.