basic state

main
Matthew Huntington 11 months ago
parent 309acce242
commit 38c3e4b023

@ -1,6 +1,6 @@
const state = new Proxy( const state = new Proxy(
{ {
fun:true fun: { awesome:true }
}, },
{ {
set: (target, prop, value) => { set: (target, prop, value) => {
@ -11,5 +11,5 @@ const state = new Proxy(
) )
console.log(state); console.log(state);
state.fun = false state.fun.awesome = false
console.log(state); console.log(state);

Loading…
Cancel
Save