Let's create a separate module to interact with the data layer, which we'll call DataPureReason.re. Here, we expose bindings to localStorage.getItem and localStorage.setItem, and a parsing function to parse JSON strings into the CustomerType.t record defined earlier.
Integrating with localStorage
Populating localStorage
You'll find some initial data in Chapter07/app-end/src/customers/data.json. Please run localStorage.setItem("customers", JSON.stringify(/* paste JSON data here */)) in your browser's console to populate localStorage with this initial data.