Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render(props) {
return createElement(
Fragment,
null,
props.children,
createPortal(createElement('div', null, 'InvisiblePortalCreator'), props.node),
null,
'Try out some crazy stuff'
);
}
};
render(props, state) {
return (
<div>
Move It
<div>
<div>
<div>
<div>
</div>
</div>
{createPortal(
<div>
<span>
{[<div>, 'Okay', <span>]}
</span>
<ul>
<li>
</li></ul>
</div>,
secondRoot
)}
</span></div>
);
}
}</div></div></div>
render(props) {
return (
<>
{props.children}
{createPortal(<div>InvisiblePortalCreator</div>, props.node)}
{null}
Try out some crazy stuff
);
}
}
onInput={ this.onInput }
onKeyDown={ this.onKeyDown }
spellcheck="false"
ref={ node => this.inputNode = node }
type="text"
value={ value } />
}
<span>
</span>
{
optionsVisible
&& createPortal(this.renderOptions(options, option), this._portalEl)
}
);
}
}
render() {
return this.state._element ? createPortal(this.renderChildren(), this.state._element) : null;
}
}