Created
February 18, 2025 14:35
-
-
Save mfal/904971f5a0361e696d80b19a3e426653 to your computer and use it in GitHub Desktop.
Using the SettingsProvider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { SettingsProvider } from "@mittwald/flow-react-components"; | |
| export default function Layout(props) { | |
| return ( | |
| <SettingsProvider type="localStorage" storageKey="my-app"> | |
| {props.children} | |
| </SettingsProvider> | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default function MyList() { | |
| return ( | |
| <List settingsStorageKey="my-list"> | |
| { /* ... */ } | |
| </List> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment