From f1e29a7ca4dd270d68f9e579c2122fd140b88ed9 Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 5 Sep 2023 10:31:24 +0000 Subject: [PATCH] Add state --- src/App.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 9ccad31..7853659 100644 --- a/src/App.js +++ b/src/App.js @@ -29,13 +29,15 @@ const AuthNavItems = [ ] /// application states +const [nav, setNav ] = useState( navItems ) + const saySomething = ( word ) => { alert( word ) } return (
-
+
} /> } />