cordis-plugin-reactive
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Reactive for Cordis

用法 Usage

import {Context} from 'cordis'
import {} from 'cordis-plugin-reactive'
export function apply(ctx:Context){
    const reactiveValue = ctx.reactive({reactiveProp:1});
    const refValue = ctx.ref('Hello,world');
    
    ctx.watch(reactiveValue,(val)=>{
         
    })
    
    ctx.watch(refValue.value,(val)=>{
        
    })
    
    const computedValue = ctx.computed(()=>refValue.value + '!')
    
    ctx.watch
}

Readme

Keywords

none

Package Sidebar

Install

npm i cordis-plugin-reactive

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

31.2 kB

Total Files

34

Last publish

Collaborators

  • xieyi1393