Summary
This chapter has explored building out a component with some complex user interactions between the user interface and an API. You’ve created a new table component and integrated it into the existing application workflow.
You have seen how to make large changes to your component’s implementation, using your tests as a safety mechanism.
You have also seen how to test render props using an additional render root—a technique that I hope you don’t have to use too often!
In the next chapter, we’ll use tests to integrate React Router into our application. We’ll continue with the CustomerSearch
component by adding the ability to use the browser location bar to specify search criteria. That will set us up nicely for introducing Redux and GraphQL later on.