Software Development Persist Values in React with Custom Hooks I needed to persist simple settings into localStorage in some react code, but the value of these settings were driven by a reducer. Composing a reducer and an effect hook