use-reactive
v0.1.0
Published
React Reactive Hook
Downloads
1
Readme
use-reactive
React Reactive Hook
Goal is to provide simple in use reactive system for React
Install
npm install --save use-reactive
Usage
import React from 'react'
import useReactive from 'use-reactive'
export default function App () {
const counter = useReactive(1)
return (
<div>
<button
onClick={
() => counter.value = counter.value + 1
}
>
{counter.value}
</button>
</div>
)
ToDo
- Nested Objects Support
- Class components support
License
MIT © Mighty683