diff options
Diffstat (limited to 'test/playground.mjs')
-rw-r--r-- | test/playground.mjs | 7 |
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) +} |