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