# localStorage with useEffect

<!-- markdown-link-check-disable -->

App idea from https://twitter.com/housecor/status/1268900696604258304

<!-- markdown-link-check-enable -->

Shows how to set `localStorage` before mounting the component, and how to clear the local storage before each test.

![Test](images/cart.png)

See [App.jsx](App.jsx) and [App.spec.jsx](App.spec.jsx)
