文件名称:markdown-in-js:reactjsx的内联markdown
文件大小:48KB
文件格式:ZIP
更新时间:2024-03-12 19:32:18
JavaScript
标记降价
您的React组件中的零开销减价
用法
将'markdown-in-js/babel'到babel配置的plugins字段中
import markdown from 'markdown-in-js'
const App = ( ) => markdown `
## This is some content.
You can write _markdown_ as you'd like.
${ < span> interpolate more < Content> < / span > }
you can inline *html* or even
【文件预览】:
markdown-in-js-master
----.gitignore(185B)
----.babelrc(95B)
----babel.js(40B)
----package.json(1KB)
----src()
--------babel.js(4KB)
--------index.js(686B)
--------jsx.js(6KB)
--------renderer.js(915B)
----examples()
--------webpack.js(816B)
--------index.js(815B)
--------prism.js(10KB)
--------index.html(215B)
--------prism.css(2KB)
----README.md(1KB)
----yarn.lock(132KB)