mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Add 'browser-ems-vite-react' sample
This commit is contained in:
parent
d901c5b613
commit
4f48e64902
11 changed files with 2230 additions and 0 deletions
11
monaco-editor-samples/browser-esm-vite-react/src/main.tsx
Normal file
11
monaco-editor-samples/browser-esm-vite-react/src/main.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import {Editor} from './components/Editor'
|
||||
import "./userWorker";
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<Editor />
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue