Home

Awesome

babel-plugin-react-directive

Use directive in React.

Now you can use r-ifr-for in jsx.

Usage:

  1. Install: yarn add babel-plugin-react-directive --dev

  2. Add to your .babelrc:

    {
        plugins:[
            'react-directive'
        ]
    }
    

r-if:

r-for: