3.0.6 • Published 3 years ago

@th-formily/reactive-react v3.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@th-formily/reactive-react

QuikStart

import React from 'react'
import { observable } from '@th-formily/reactive'
import { observer } from '@th-formily/reactive-react'

const obs = observable({
  count: 0,
})

export default observer(() => {
  return (
    <div>
      {obs.count}
      <button
        onClick={() => {
          obs.count++
        }}
      >
        Click
      </button>
    </div>
  )
})