this is a great way of fixing a very common problem i've seen so many times. I really like your approach and i think i'll try it in my current react project.
Hooks are such a blessing.
Hooks are a blessing indeed ! Glad you like it :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.