0.0.1 ā¢ Published 4 years ago
babel-plugin-react-chaos v0.0.1
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
0.0.1
4 years ago