babel-plugin-transform-react-jsx-props

2.0.0 • Public • Published

babel-plugin-transform-react-jsx-props

Adds additional props to jsx snippets.

Example

In

<sometag />

Out

<sometag prop="string" />

Installation

$ npm install babel-plugin-transform-react-jsx-props

Usage

Via Node API

require("babel-core").transform("code", {
  plugins: [["transform-react-jsx-props", options]]
});

/babel-plugin-transform-react-jsx-props/

    Package Sidebar

    Install

    npm i babel-plugin-transform-react-jsx-props

    Weekly Downloads

    4

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • grid_rg
    • haeusler
    • researchgate-bot
    • mdio
    • danez