Why {useState} Is Wrapped In Curly Bracket When Importing in React
I encountered an error while importing "useState" in my react app, the correct way is to wrap it in a curly bracket, but somehow, I forgot to include the curly bracket and was thrown an error in my browser.
Here's what happened, I am importing useS...
diseyi.hashnode.dev1 min read