Skip to content

Commit 0aca64a

Browse files
author
Vlad Balin
committed
added package.json
1 parent 2a9c399 commit 0aca64a

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Features
22

3-
- Comprehensive solution for two-way data binding and validation.
4-
- Create links to state's attributes.
5-
- Create links to deeply nested object and array elements with purely functional state updates.
3+
- Simple solution for two-way data binding and validation.
4+
- All major data binding scenarios are supported, including radio groups.
5+
- Links to state's attributes.
6+
- Links to deeply nested object and array elements with purely functional state updates.
67
- Ad-hoc boolean links for values equality and presence in array.
78

89
```javascript
910
var phonebookLink = Link.state( this, 'phonebook' );
1011

11-
var list = phonebookLink.map( itemLink => (
12-
<div>
12+
var list = phonebookLink.map( ( itemLink, idx ) => (
13+
<div key={ idx }>
1314
<input valueLink={ itemLink.at( 'name' ) } />
1415
</div>
1516
));

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
2-
* Advanced React-compatible value links
2+
* Advanced React value links with validation and link-to-objects capabilities
3+
* (c) 2016 Vlad Balin & Volicon, MIT License
34
*/
45

56
function Link( value, set, error ){

package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "valuelink",
3+
"version": "1.0.0",
4+
"description": "React valueLink implementation with links to objects, validation, and purely functional updates.",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/Volicon/valuelink.git"
12+
},
13+
"keywords": [
14+
"react",
15+
"valuelink",
16+
"databinding",
17+
"binding",
18+
"data",
19+
"link",
20+
"state"
21+
],
22+
"author": "Vlad Balin",
23+
"license": "MIT",
24+
"bugs": {
25+
"url": "https://github.com/Volicon/valuelink/issues"
26+
},
27+
"homepage": "https://github.com/Volicon/valuelink#readme"
28+
}

0 commit comments

Comments
 (0)