Skip to content

quangbuule/extract-hoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extract HoC

A Babel plugin that enables react-hot-loader to work on HoCs.

Why this plugin needs to exist

react-hot-loader won't work if you put the component as an argument in functions (to create a higher order component).

See more at this issue: gaearon/react-hot-loader#650

Installation

$ npm install extract-hoc

In the .babelrc, add extract-hoc/babel before the react-hot-loader/babel:

{
  "plugins": [
    "extract-hoc/babel",
    "react-hot-loader/babel"
  ]
}

License

MIT

About

A Babel plugin that enables react-hot-loader to work on HoCs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published