From c273d668c7fc9c06583d1d07e30287c98a5d26c3 Mon Sep 17 00:00:00 2001 From: Mahmoud Adel <108840229+MahmoudAdel9@users.noreply.github.com> Date: Sat, 19 Aug 2023 23:13:27 +0300 Subject: [PATCH] Update App.js I mentioned that updating an object's property By a Set function which provided by React would be a best practice --- 04-steps/final/src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/04-steps/final/src/App.js b/04-steps/final/src/App.js index f84112fe12..4fba7d20c7 100644 --- a/04-steps/final/src/App.js +++ b/04-steps/final/src/App.js @@ -41,6 +41,7 @@ function Steps() { // BAD PRACTICE // test.name = "Fred"; + // BEST PRACTICE // setTest({ name: "Fred" }); }