From 816f65de5ad489761646c05d0ce1886fde1505c3 Mon Sep 17 00:00:00 2001 From: DUSHYANT JANGRA Date: Fri, 17 Feb 2023 15:10:05 +0530 Subject: [PATCH] Update App.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 50692bc..dcd92d9 100644 --- a/src/App.js +++ b/src/App.js @@ -20,7 +20,7 @@ const App = () => { // CRUD operations const addUser = user => { - user.id = users.length + 1 + user.id = Date.now() setUsers([ ...users, user ]) }