Created
August 13, 2022 15:42
-
-
Save AlbertoDePena/372d01e5a3d19ed9ef9dcc991ec830bf to your computer and use it in GitHub Desktop.
FSharp snippets
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
{ | |
"Elmish Component": { | |
"prefix": "elmish-comp", | |
"body": [ | |
"open Elmish", | |
"open Elmish.React", | |
"open Feliz", | |
"", | |
"type State = { Message: string }", | |
"", | |
"type Msg =", | |
" | NoOp", | |
"", | |
"let init () =", | |
" { Message = \"Hello, World!\" }, Cmd.none", | |
"", | |
"let update (msg: Msg) (state: State) =", | |
" state, Cmd.none", | |
"", | |
"let render (state: State) (dispatch: Msg -> unit) =", | |
" Html.none", | |
"" | |
], | |
"description": "Elmish Component" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment