Zero configuration 🔥Hot Module Replacement🔥 using Babel macro
Clone or download
Latest commit 734f7e5 Jan 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jan 4, 2019
LICENSE Initial commit Jan 4, 2019
README.md Upgrade RHL API to use newest one Jan 6, 2019
index.js Fix production build Jan 6, 2019
package.json Fix production build Jan 6, 2019
yarn.lock v1.0.0 Jan 5, 2019

README.md

react-hot-reload.macro

Babel Macro NPM

Zero configuration 🔥Hot Module Replacement🔥 using Babel macro and react-hot-loader, mostly for Create React App (v2+) users

No eject, No configuration 🎉🎉

Usage

yarn add react-hot-reload.macro
# or
npm install --save react-hot-reload.macro

Modify your App.js component

import React from 'react'
+import hot from 'react-hot-reload.macro'

...

-export default App
+export default hot(App)

That's it. Happy Hacking!

If you want to see more detail: API section of RHL