An open API service indexing awesome lists of open source software.

https://github.com/c8r/babel-plugin-get-jsx-props

Get jsx data props
https://github.com/c8r/babel-plugin-get-jsx-props

Last synced: 8 months ago
JSON representation

Get jsx data props

Awesome Lists containing this project

README

          

# babel-get-jsx-props

Get props passed to a JSX component.

## Installation

```
npm i -S @compositor/babel-plugin-get-jsx-props
```

## Usage

```js
const getProps = require('@compositor/babel-plugin-get-jsx-props')

const { metadata } = babel.transform(jsx, {
plugins: [getProps],
presets: ['stage-0', 'react'],
fileName: jsxFilename
})
```

## Prior art and references

* https://github.com/avajs/babel-plugin-ava-test-data

## Related

* https://github.com/c8r/get-jsx-props

[Made by Compositor](https://compositor.io)
|
[MIT License](LICENSE.md)