react-dom-factories
React package for DOM factory methods.
Last updated 3 years ago by sophiebits .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-dom-factories 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (3 years ago)

3 Versions

  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 0
This Week 2,009
This Month 5,778
Last Day 105
Last Week 1,886
Last Month 10,033
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (155)

Copyright 2014 - 2017 © taobao.org |