0.0.1 ā€¢ Published 4 years ago

babel-plugin-react-chaos v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Welcome to babel-plugin-react-chaos šŸ‘‹

Version Documentation Maintenance License: MIT

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

šŸ¤ 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