Hooks mainly used to provide state, lifecycle methods and all other features in functional component that we generally get in a class component. But also makes it easier to apply.
Where to use
Hooks are mainly used in react functional components. Because functional components are stateless and hooks provide us…
The spread operator is awesome. It can do so much — it’s efficient, readable, and can save a whole load of mess. I have used this many times.
CSS selectors are the ways by which we select the HTML elements and style them. These HTML elements may be either single or in groups, either adjacent or in different places.
These selectors are basically divided into 4 categories:
2. Combinators Selectors