When you’ve got a top-notch mixer, instead of wasting time whisking eggs and sugar, you can focus on improving other aspects of your craft, like refining your recipes or decorating your cakes.
Similar to how superb equipment enables pastry chefs to focus on more significant aspects of their craft, frontend frameworks and libraries, like React, allow you to focus on more significant aspects of writing web applications. Instead of focusing on manipulating the DOM—removing, inserting, and updating elements yourself—you can focus on your application’s usability, accessibility, and business logic.
In this chapter, you’ll learn how to test React applications and how it relates to what you’ve learned about testing frontend applications. You’ll learn how tools like JSDOM can still be useful in different contexts, and you’ll learn concepts that will help test any other frontend frameworks you may use.