babel-plugin-react-chaos
v0.0.1
Published
Babel plugin for react-chaos
Downloads
4
Readme
Welcome to babel-plugin-react-chaos 👋
Babel plugin for react-chaos
Auto wrap your react components with react-chaos
🏠 Homepage
Install
npm install react-chaos
npm install babel-plugin-react-chaos
Usage
//.babelrc
plugins: [
["babel-plugin-react-chaos",{
chaosLevel: 5 //default 5
}]
]
Principle
Your source react component
import React from 'react'
function Hello(){
return (
<div>Hello</div>
)
}
export default Hello;
transform to
import React from 'react'
import withChaos from 'react-chaos'
function Hello(){
return (
<div>Hello</div>
)
}
export default withChaos(Hello, |chaosLevel|);
Author
👤 ForeverPx
- Github: @SugarTurboS
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2020 ForeverPx.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator