From af7c2e44f3bb3e52cea363c4188a39fc1924931f Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sun, 22 May 2022 03:46:24 +0100 Subject: :construction: Experiment using monaco editor for the lustre playground. --- test/playground.mjs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/playground.mjs (limited to 'test/playground.mjs') 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) +} -- cgit v1.2.3