0.1.1 • Published 10 months ago

cordis-plugin-reactive v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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
}
0.1.1

10 months ago

0.1.0

10 months ago