You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,10 +95,15 @@ Running a web-compatible recipe:
95
95
||:heavy_check_mark:|[CatGifsHalogenHooks](recipes/CatGifsHalogenHooks)| A Halogen port of the ["HTTP - Cat GIFs" Elm Example](https://elm-lang.org/examples/cat-gifs). |
96
96
||:heavy_check_mark:|[CatGifsReactHooks](recipes/CatGifsReactHooks)| A React port of the ["HTTP - Cat GIFs" Elm Example](https://elm-lang.org/examples/cat-gifs). |
97
97
||:heavy_check_mark:|[ComponentsHalogenHooks](recipes/ComponentsHalogenHooks)| Demonstrates how to nest one Halogen-Hooks-based component inside another and send/receive queries between the two. |
98
+
||:heavy_check_mark:|[ComponentsInputHalogenHooks](recipes/ComponentsInputHalogenHooks)| Each time a parent re-renders, it will pass a new input value into the child, and the child will update accordingly. |
99
+
||:heavy_check_mark:|[ComponentsMultiTypeHalogenHooks](recipes/ComponentsMultiTypeHalogenHooks)| Demonstrates a component that can communicate with its children that have differing types. |
98
100
|:heavy_check_mark:|:heavy_check_mark:|[DebuggingLog](recipes/DebuggingLog)| This recipe shows how to do print-debugging using the `Debug` module's `spy` and `traceM` functions. The compiler will emit warnings to remind you to remove these debug functions before you ship production code. |
99
101
|:heavy_check_mark:||[DiceCLI](recipes/DiceCLI)| This recipe shows how to create an interactive command line prompt that repeatedly generates a random number between 1 and 6. |
100
102
|:heavy_check_mark:|:heavy_check_mark:|[DiceLog](recipes/DiceLog)| This recipe shows how to log a random integer between 1 and 6 (representing a roll of a die) in either the node.js or web browser console. |
101
103
||:heavy_check_mark:|[DragAndDropHalogenHooks](recipes/DragAndDropHalogenHooks)| A Halogen port of the ["Files - Drag-and-Drop" Elm Example](https://elm-lang.org/examples/drag-and-drop). |
104
+
||:heavy_check_mark:|[DriverIoHalogenHooks](recipes/DriverIoHalogenHooks)| Demonstrates how to communicate with a Halogen application by sending messages to and receiving messages from the root-level component via the driver. |
105
+
||:heavy_check_mark:|[DriverRoutingHalogenHooks](recipes/DriverRoutingHalogenHooks)| Demonstrates using `hashchange` events to drive the root component in a Halogen application via the driver. |
106
+
||:heavy_check_mark:|[DriverWebSocketsHalogenHooks](recipes/DriverWebSocketsHalogenHooks)| Demonstrates using a WebSocket to drive the main component in a Halogen application. |
102
107
||:heavy_check_mark:|[FileUploadHalogenHooks](recipes/FileUploadHalogenHooks)| A Halogen port of the ["Files - Upload" Elm Example](https://elm-lang.org/examples/upload). |
103
108
||:heavy_check_mark:|[FindDomElementJs](recipes/FindDomElementJs)| This recipe shows how to find elements in the DOM by using query selectors. |
104
109
||:heavy_check_mark:|[FormsReactHooks](recipes/FormsReactHooks)| A React port of the ["User Interface - Forms" Elm Example](https://elm-lang.org/examples/forms). |
@@ -110,6 +115,9 @@ Running a web-compatible recipe:
110
115
|:heavy_check_mark:|:heavy_check_mark:|[HelloWorldLog](recipes/HelloWorldLog)| This recipe shows how to run a simple "Hello world!" program in either the node.js or web browser console. |
111
116
|:heavy_check_mark:|:heavy_check_mark:|[HeterogenousArrayLog](recipes/HeterogenousArrayLog)| This recipe demonstrates how to create a heterogenous array and process its elements. |
112
117
||:heavy_check_mark:|[ImagePreviewsHalogenHooks](recipes/ImagePreviewsHalogenHooks)| A Halogen port of the ["Files - Drag-and-Drop" Elm Example](https://elm-lang.org/examples/drag-and-drop). |
118
+
||:heavy_check_mark:|[InterpretHalogenHooks](recipes/InterpretHalogenHooks)| Demonstrates how to use a custom monad (in this case, using `ReaderT` with `Aff` as the effect type) for a component, and then interpreting that custom monad back down to `Aff`, so it can be run as a normal component. |
119
+
||:heavy_check_mark:|[KeyboardInputHalogenHooks](recipes/KeyboardInputHalogenHooks)| This example demonstrates how to selectively capture keyboard events and, more generally, how to use `EventSource`s in Halogen. |
||:heavy_check_mark:|[NumbersHalogenHooks](recipes/NumbersHalogenHooks)| A Halogen port of the ["Random - Numbers" Elm Example](https://elm-lang.org/examples/numbers). |
114
122
||:heavy_check_mark:|[NumbersReactHooks](recipes/NumbersReactHooks)| A React port of the ["Random - Numbers" Elm Example](https://elm-lang.org/examples/numbers). |
115
123
||:heavy_check_mark:|[PositionsHalogenHooks](recipes/PositionsHalogenHooks)| A Halogen port of the ["Random - Positions" Elm Example](https://elm-lang.org/examples/positions). |
Each time a parent re-renders, it will pass a new input value into the child, and the child will update accordingly.
4
+
5
+
## Expected Behavior:
6
+
7
+
### Browser
8
+
9
+
The parent stores an `Int`. Clicking the buttons will increment/decrement that value. The children will produce the result of a mathematical computation using that value.
Demonstrates a component that can communicate with its children that have differing types.
4
+
5
+
## Expected Behavior:
6
+
7
+
### Browser
8
+
9
+
A toggle button, a count button, and an input field are the children of the parent. The user can modify either of those children's values and then click the "Check now" button. The parent will get the latest state from each of its children and display all states.
0 commit comments