aboutsummaryrefslogtreecommitdiff
path: root/test/playground.mjs
blob: 54d77a81dc03e8ca4bd0cf44afaaea2de6ced8be (plain)
1
2
3
4
5
6
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)
}