-
Notifications
You must be signed in to change notification settings - Fork 46.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6127 from jimfb/LinkedInput-to-packages
Moved LinkedInput from addons to packages.
- Loading branch information
Showing
4 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
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'); | ||
var link = {value: 'boo', requestChange: function() {}}; | ||
React.render(<LinkedInput valueLink={link} />, container); | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "react-linked-input", | ||
"version": "1.0.0", | ||
"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" | ||
} | ||
} |