react-dom-factories

1.0.2 • Public • Published

react-dom-factories

Note: ReactDOMFactories is a legacy add-on. Consider using React.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'))

Keywords

install

npm i react-dom-factories

Downloadsweekly downloads

98,400

version

1.0.2

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability