diff --git a/src/addons/link/LinkedInput.js b/packages/react-linked-input/LinkedInput.js
similarity index 82%
rename from src/addons/link/LinkedInput.js
rename to packages/react-linked-input/LinkedInput.js
index cfd8f92edef08..44120b6874fcd 100644
--- a/src/addons/link/LinkedInput.js
+++ b/packages/react-linked-input/LinkedInput.js
@@ -11,8 +11,8 @@
'use strict';
-var React = require('React');
-var LinkedValueUtils = require('LinkedValueUtils');
+var React = require('react');
+var LinkedValueUtils = require('react/lib/LinkedValueUtils');
class LinkedInput extends React.Component {
render() {
@@ -21,8 +21,9 @@ class LinkedInput extends React.Component {
newProps.checked = LinkedValueUtils.getChecked(this.props);
delete newProps.valueLink;
delete newProps.checkedLink;
- return ;
+ return React.createElement('input', newProps);
}
}
module.exports = LinkedInput;
+
diff --git a/packages/react-linked-input/README.md b/packages/react-linked-input/README.md
new file mode 100644
index 0000000000000..fb8ed946f880a
--- /dev/null
+++ b/packages/react-linked-input/README.md
@@ -0,0 +1,10 @@
+This component supports the ReactLink API (valueLink, etc) for input components. Support for ReactLink on DOM elements will be removed from React. This component may be used as a migration plan (so your code doesn't break in the next version of React) or may be used if you just like the ReactLink data binding semantics. However, this component is not maintained, so use at your own risk.
+
+
+```
+var React = require('react');
+var ReactDOM = require('react-dom');
+var LinkedInput = require('react-linked-input');
+
+React.render(, container);
+```
diff --git a/src/addons/link/__tests__/LinkedInput-test.js b/packages/react-linked-input/__test__/LinkedInput-test.js
similarity index 100%
rename from src/addons/link/__tests__/LinkedInput-test.js
rename to packages/react-linked-input/__test__/LinkedInput-test.js
diff --git a/packages/react-linked-input/package.json b/packages/react-linked-input/package.json
new file mode 100644
index 0000000000000..764d0325a664b
--- /dev/null
+++ b/packages/react-linked-input/package.json
@@ -0,0 +1,25 @@
+{
+ "name": "react-linked-input",
+ "version": "0.0.201602251656",
+ "description": "LinkedInput supports the ReactLink semantics",
+ "main": "LinkedInput.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/facebook/react.git"
+ },
+ "keywords": [
+ "react",
+ "linkedinput",
+ "input",
+ "linked",
+ "reactlink"
+ ],
+ "author": "",
+ "license": "BSD-3-Clause",
+ "peerDependencies": {
+ "react": "^0.14.7"
+ }
+}