July 28 - Top 3 React articles
Top 3 React articles of the week:
1. How to detect a click outside in React and test it by Dmytro Chumak
In this article, we're going to learn how to implement a click outside functionality using different React techniques like Hooks and Classes. Then, we will consider unit testing using Enzyme and React Testing Library.
2. Calling React Hooks Conditionally/Dynamically Using Render Props by Oliver Joseph Ash
If you've used hooks at all, you'll know that one limitation is not being able to conditionally call them in the render body of your component. So what can we do if we really need to call a hook conditionally?
3. How to Use Debounce in React and Abstract them into Hooks by Divyanshu Maithani
You have probably had to implement debounce in your React applications, this is how you can abstract it into a reusable hook.
Want to share this with a friend? Use this link
Don't miss what's next. Subscribe to tinyreact: