This adds a <MonacoEditor> React component to simplify the use of Monaco with React. The component does not depend on the configureEditor function (apart from its type signature), and is a 100% generic React component for Monaco.
It could be argued that it doesn't belong in this library because:
It adds a dependency on React which non-react users won't need
It's generic, so it doesn't belong in this repo
However, it seems like a pragmatic solution for now. If anybody is unhappy with the React dependency, we can factor it out later.
This adds a
<MonacoEditor>
React component to simplify the use of Monaco with React. The component does not depend on theconfigureEditor
function (apart from its type signature), and is a 100% generic React component for Monaco.It could be argued that it doesn't belong in this library because:
However, it seems like a pragmatic solution for now. If anybody is unhappy with the React dependency, we can factor it out later.