Composition is very powerful in React but for some cases, it may be hard to use. Today I will give you examples of composition caught up in real projects.
When you use hooks, you can write them in their own file. And you could test them.
Today, when you use React and functional components, you need hooks. Work with hooks is easier than class components, I've encountered some issues during development and today, I want to share my solutions with you.