Closed UpperCod closed 6 months ago
Allows maintaining an optional pattern based on useState and useProp of mutable values, examples:
const count = useProp<number>("count"); <button onclick={()=>count.value++}> Increment : {count} </button>
const count = useState(0); <button onclick={()=>count.value++}> Increment : {count} </button>
Allows maintaining an optional pattern based on useState and useProp of mutable values, examples:
With useProp
With useState