react-rewire-hot-loader

1.1.13 • Public • Published

react-rewire-hot-loader

Usage

  1. 导入react-rewire-hot-loader
import { compose } from 'react-rewired-scripts'
import rewireHotLoader from 'react-rewire-hot-loader'
 
export default compose(rewireHotLoader);
  1. 让你的根元素加上 hot
// ./containers/App.js
import React from 'react'
import { hot } from 'react-hot-loader'
 
const App = () => <div>Hello World!</div>
 
export default hot(module)(App)

链接

/react-rewire-hot-loader/

    Package Sidebar

    Install

    npm i react-rewire-hot-loader

    Weekly Downloads

    2

    Version

    1.1.13

    License

    ISC

    Unpacked Size

    5.83 kB

    Total Files

    5

    Last publish

    Collaborators

    • likun7981