jsx-to-element
v1.1.2
Published
jsx解析成真实dom的一个工具
Downloads
6
Readme
const test = (arr) => {
return (
<div className='test'>
啦啦啦
{
arr.map(item => {
return (
<span>{item}</span>
)
})
}
</div>
)
}
const testEle = jsxToElement(test([1, 2, 3]));
document.body.appendChild(testEle)