Skip to content

Commit

Permalink
Skeleton for minimal UI sketching, via FSI directly
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWilson committed Mar 4, 2024
1 parent e8f6852 commit 6e04842
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scratch/GuessNumber.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#load "SketchUI.fsx"
open SketchUI

let init = ()
let update msg model = model
let view model =
"Hello, world! Notice that there's no dispatch argument"
let send: unit -> unit = connect init update view

send()
7 changes: 7 additions & 0 deletions scratch/SketchUI.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#if INTERACTIVE
#load "../src/Core/Common.fs"
#endif

let connect init update view =
let dispatch = notImpl
dispatch

0 comments on commit 6e04842

Please sign in to comment.