aboutsummaryrefslogtreecommitdiff
path: root/test/playground/main.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'test/playground/main.gleam')
-rw-r--r--test/playground/main.gleam28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/playground/main.gleam b/test/playground/main.gleam
deleted file mode 100644
index 0b0bbe1..0000000
--- a/test/playground/main.gleam
+++ /dev/null
@@ -1,28 +0,0 @@
-import gleam/io
-import lustre
-import lustre/attribute.{attribute}
-import playground/monaco
-
-pub type Action {
- OnInput(String)
-}
-
-pub fn main() {
- let init = "// Write some Gleam code here"
-
- let update = fn(_, action) {
- case action {
- OnInput(input) -> io.debug(input)
- }
- }
-
- let render = fn(state) {
- monaco.render([
- attribute("value", state),
- monaco.on_change(fn(code, dispatch) { dispatch(OnInput(code)) }),
- ])
- }
-
- lustre.simple(init, update, render)
- |> lustre.start("[data-lustre-container]")
-}