React was designed to solve one problem—how to build applications with data that changes over time. Considering the as-you-type search experience offered by Algolia wherein whole results pages, hits and refinement links alike, are updated at each keystroke, React was the obvious choice when we needed a tool to build out our new library of UI widgets: instantsearch.js. We quickly struggled, however
![How we unit test React components using expect-jsx - Algolia Blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/5e970d131384930d6e01becd52ea4473f67d1d52/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fhilnmyskv%2Fimage%2Fupload%2Fq_auto%2Cf_auto%2Fv1681990412%2FAlgolia_com_Blog_assets%2FFeatured_images%2Fengineering%2Fhow-we-unit-test-react-components-using-expect-jsx%2Fsldrq2egmg1iwq1iliot.png)