diff --git a/index.js b/index.js index 9141146..8ed670a 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ const state = new Proxy( { - fun:true + fun: { awesome:true } }, { set: (target, prop, value) => { @@ -11,5 +11,5 @@ const state = new Proxy( ) console.log(state); -state.fun = false +state.fun.awesome = false console.log(state);