mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Delete react-dom-factories package (#10279)
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
# `react-addons-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-addons-dom-factories` library.
|
||||
|
||||
## Example
|
||||
|
||||
```javascript
|
||||
import ReactDOM from 'react-dom';
|
||||
import DOM from 'react-addons-dom-factories'; // ES6
|
||||
|
||||
const greeting = DOM.div({ className: 'greeting' }, DOM.p(null, 'Hello, world!'));
|
||||
|
||||
ReactDOM.render(greeting, document.getElementById('app'))
|
||||
```
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./lib/ReactDOMFactories');
|
||||
@@ -1,25 +0,0 @@
|
||||
{
|
||||
"name": "react-dom-factories",
|
||||
"version": "16.0.0-alpha.13",
|
||||
"description": "React package for DOM factory methods.",
|
||||
"main": "index.js",
|
||||
"repository": "facebook/react",
|
||||
"keywords": [
|
||||
"react"
|
||||
],
|
||||
"license": "BSD-3-Clause",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebook/react/issues"
|
||||
},
|
||||
"homepage": "https://facebook.github.io/react/",
|
||||
"peerDependencies": {
|
||||
"react": "^16.0.0-alpha.13"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"PATENTS",
|
||||
"README.md",
|
||||
"index.js",
|
||||
"lib/"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user