React Hooks: Array Destructuring Fundamentals
What is this article about?
Hooks solve a wide variety of seemingly unconnected problems in React that we’ve encountered over five years of writing and maintaining tens of thousands of components. Whether you’re learning React, use it daily, or even prefer a different library with a similar component model, you might recognize some of these problems.
You must have come across useState and useReducer a lot if you’ve been using React for sometime now. So what is this scary syntax being used and what it happening under the hood?