1.0.1 • Published 6 years ago
bisheng-plugin-react-pro v1.0.1
bisheng-plugin-react
To convert JSX which is written in Markdown to React.Element.
Usage
Install:
npm i --save bisheng-plugin-react
Add 'bisheng-plugin-react to bisehng.config.js
's plugins.
module.exports = {
plugins: ['bisheng-plugin-react?lang=jsx'],
};
In Markdown:
The above example will be rendered as:
API
lang: String
default: 'react-component'
babelConfig: Object
default: { presets: 'es2015-ie', 'react', 'stage-0' }
noreact: Boolean
default: false
Whether to import React
and ReactDOM
automatically.
License
MIT
1.0.1
6 years ago