3 ms·
Just build the dom in JS, like so: React.createElement( string/ReactClass type, [object props], [children ...] )
by pascalo 11y ago
Just build the dom in JS, like so: React.createElement(
string/ReactClass type,
[object props],
[children ...]
)
- rjayatilleka 11y agoI haven't used React in a while, so maybe this has changed, but can't you just do something like component = React.createFactory(MyReactComponentClass); component(props, children);