https://github.com/slavahatnuke/ireactivity-form-dom
https://github.com/slavahatnuke/ireactivity-form-dom
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/slavahatnuke/ireactivity-form-dom
- Owner: slavahatnuke
- Created: 2017-04-15T01:35:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-28T19:06:52.000Z (over 7 years ago)
- Last Synced: 2025-03-01T10:19:30.276Z (3 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ireactivity-form-dom
Bi-directional forms inputs binding.```javascript
import {Provider, connect, update, render} from 'ireactivity';
import {input, submit} from 'ireactivity-form-dom';
``````javascript
const TodoForm = ({onSave}) => {
const todo = {
title: '',
user: {
name: 'slava'
}
};const save = () => {
onSave({...todo});
};return render(todo, () =>
{todo.title}
{todo.user.name}
)
};
```This example a part of simple web todo:
- simple web todo list [https://github.com/slavahatnuke/ireactivity-web-simple-list-example](https://github.com/slavahatnuke/ireactivity-web-simple-list-example)## iReactivity
[https://www.npmjs.com/package/ireactivity](https://www.npmjs.com/package/ireactivity) - Simple React binding