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
| {- | |
| Equivalent Miso pattern for the following React pattern: | |
| ```tsx | |
| import React from 'react' | |
| const Counter = () => { | |
| const [counterState, setCounterState] = React.useState(0) | |
| const onPlusClicked = () => setCounterState((prev) => prev + 1) | |
| return ( |
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
| {-# LANGUAGE ImportQualifiedPost #-} | |
| {-# LANGUAGE OverloadedRecordDot #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| {-# LANGUAGE TypeApplications #-} | |
| module Miso.Persistence ( | |
| Trigger' (..), | |
| PersistenceDebouncer (..), | |
| PersistenceHandle (..), | |
| findPersistedModel, |