标记降价
您的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 <i>inline *html*</i> or even <OtherComponents>, wow
<div style= ${ { fontWeight : 'bold' } }
className= ${ 'some more styles' }
评论0
最新资源