https://github.com/zmitry/-statefull
react-statefull
https://github.com/zmitry/-statefull
Last synced: 2 months ago
JSON representation
react-statefull
- Host: GitHub
- URL: https://github.com/zmitry/-statefull
- Owner: zmitry
- Created: 2017-08-23T15:08:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-23T15:13:34.000Z (almost 9 years ago)
- Last Synced: 2025-03-23T00:26:22.116Z (about 1 year ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# statefull
react-statefull
react statefull hoc
it add local state redux like.
```jsx
statuefull({
title: ''
},{
setTitle: (state, value)=> { return { ...state, title: value' } },
clearTitle: (state, value)=>{ return { ...state, title: '' } }
})(({ title, setTitle, clearTitle })=>{
return
{title}
setTitle(e.target.value)}> title
clear
})
```