jsx-to-element

1.1.2 • Public • Published
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)

Readme

Keywords

Package Sidebar

Install

npm i jsx-to-element

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

13.8 kB

Total Files

5

Last publish

Collaborators

  • liuxinya