React basics: explaining the useState hook
Hooks are a superb way to store and manage state inside React components.
The useState hook is a super-easy way to maintain states efficiently.
Declaring a new state
To use the hook, we first need to import it from React like so:
import React, { useS...
h.daily-dev-tips.com3 min read
Trecia Kat
Full Stack Software Engineer ๐ฉ๐ฝโ๐ป | Tailwind CSS ๐ฉต | DevRel ๐ฅ | MCU ๐
Thanks for this lekker article, came at the right time as I'm a React newbie! ๐