react-dom-factories
v1.0.2
Published
React package for DOM factory methods.
Downloads
557,508
Readme
react-dom-factories
Note:
ReactDOMFactories
is a legacy add-on. Consider usingReact.createFactory
or JSX instead.
Prior to version 16.0.0, React maintained a whitelist of
pre-configured DOM factories. These predefined factories have been
moved to the react-dom-factories
library.
Example
import ReactDOM from 'react-dom';
import DOM from 'react-dom-factories';
const greeting = DOM.div({ className: 'greeting' }, DOM.p(null, 'Hello, world!'));
ReactDOM.render(greeting, document.getElementById('app'))