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                                ...           3 years ago
Downloads
Today 369
This Week 369
This Month 8,263
Last Day 93
Last Week 2,109
Last Month 6,587
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (151)

Copyright 2014 - 2016 © taobao.org |