From 38c3e4b0231928b34bb298f8b32b0ff0b99836ee Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Sat, 1 Feb 2025 18:41:07 -0500 Subject: [PATCH] basic state --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);