Package Exports
- react-dom-factories
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-dom-factories) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-dom-factories
Note:
ReactDOMFactoriesis a legacy add-on. Consider usingReact.createFactoryor 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'))