bisheng-plugin-react v1.2.3
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 bisheng.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: [ 'react', ['env', { targets: { browsers: 'last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 8', 'iOS >= 8', 'Android >= 4', }, }], ], plugins: 'transform-class-properties', 'transform-object-rest-spread', , }
noreact: Boolean
default: false
Whether to import React
and ReactDOM
automatically.
License
MIT
7 months ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago