0.0.1 • Published 7 years ago
react-dom-element-container v0.0.1
react-dom-element-container
sometimes you will need to mount the mount DOM element and it handles the lifecycle for you.
import ReactDOMElementContainer from 'react-dom-element-container';
// tag is optional
// extend HTMLProps
// el can be null
<ReactDOMElementContainer tag={'div'} el={document.createElement('div')} style={{color: 'red'}}/>;
0.0.1
7 years ago