aboutsummaryrefslogtreecommitdiff
path: root/test/playground.mjs
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2022-05-22 03:46:24 +0100
committerHayleigh Thompson <me@hayleigh.dev>2022-05-22 03:46:24 +0100
commitaf7c2e44f3bb3e52cea363c4188a39fc1924931f (patch)
tree3d6747c9f63d2221e453718b1dd41ea824f0987e /test/playground.mjs
parentd408e6b8bd47b8c5ac5d2218943c11d576705583 (diff)
downloadlustre-af7c2e44f3bb3e52cea363c4188a39fc1924931f.tar.gz
lustre-af7c2e44f3bb3e52cea363c4188a39fc1924931f.zip
:construction: Experiment using monaco editor for the lustre playground.
Diffstat (limited to 'test/playground.mjs')
-rw-r--r--test/playground.mjs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/playground.mjs b/test/playground.mjs
new file mode 100644
index 0000000..54d77a8
--- /dev/null
+++ b/test/playground.mjs
@@ -0,0 +1,7 @@
+import * as Lustre from 'lustre/ffi.mjs'
+import * as React from 'react'
+import Editor from '@monaco-editor/react'
+
+export const monaco = (attributes) => (dispatch) => {
+ return React.createElement(Editor, Lustre.toProps(attributes, dispatch), null)
+}