Test Patterns With React Hooks

Luis Paredes
Mar 25, 2020 · 3 min read

Writing components using React has become a cleaner and more efficient task since the introduction of the Hooks API.

However, adopting this new API brings about a paradigm shift: instead of using classes with their attributes and methods, now we have to deal with regular functions.

Test Patterns Before Hooks