@formily/reactive-react
v2.3.2
Published
## QuikStart
Downloads
29,495
Readme
@formily/reactive-react
QuikStart
import React from 'react'
import { observable } from '@formily/reactive'
import { observer } from '@formily/reactive-react'
const obs = observable({
count: 0,
})
export default observer(() => {
return (
<div>
{obs.count}
<button
onClick={() => {
obs.count++
}}
>
Click
</button>
</div>
)
})