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
- Host: GitHub
- URL: https://github.com/c8r/babel-plugin-get-jsx-props
- Owner: c8r
- Created: 2017-11-13T22:51:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-09T21:56:58.000Z (over 8 years ago)
- Last Synced: 2025-04-19T09:25:14.747Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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)