Summary

Now you know how to create the React components and unit test them.

In this chapter, you learned the essentials of Jest; the unit testing framework from Facebook that works well with React. We discussed the test suits, specs, expectations, and matchers. We created mocks and simulated click events.

In the next chapter, we'll learn the essentials of the Flux architecture, and how to improve the maintainability of our React application.

Get React.js Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.