react-dom-factories
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/react-dom-factories package

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'))

Readme

Keywords

Package Sidebar

Install

npm i react-dom-factories

Weekly Downloads

138,445

Version

1.0.2

License

MIT

Last publish

Collaborators

  • fb
  • sophiebits