package
JSX string renderer utility
npm install to-elementGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
JSX string renderer utility.
npm i -S to-elementconst toElement = require('to-element')
const { Foo } = require('./ui')
const jsxStr = '<Foo>{bar}</Foo>'
const scope = {
Foo,
bar: 'baz'
}
toElement(jsxStr, scope)git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Estimated unpacked size across 10 packages.
1.4 MB
Includes dependencies.