Digests » 245
Vettery is an online hiring marketplace that's changing the way people hire and get hired. Ready for a bold career move? Make a free profile, name your salary, and connect with hiring managers from top employers today.
We should always ship fast experiences to our users, but sometimes something slips through our PR review process and our users start having a slow experience. Unless they complain to us, we often have no way of knowing that things are going so slow for them. User complaints is not a great policy for quality control.
React 16.8 came with the ability to use hooks in React that gave us the ability to enhance functional components in such a way that they could do anything a class component could do through useState and useEffect hooks. But a slightly overlooked capability was to create your own custom hooks.
In this React tutorial, I'll be demonstrating how we can build a re-usable UI by adopting compound components in React. I have found that by using Compound Components I avoid having to create unnecessary components that ultimately add architectural complexity to my application.
In the last article, when we passed the normalized form of an article list, we were passing an id instead of an actual comment. You can see this by opening any comment. To make them visible, we need to create a separate reducer responsible for comments and take the needed comments from there. Just like what we’ve done to the articles, we need to do the same with our comments. Let’s start.