mirror of
https://github.com/c8r/x0.git
synced 2024-09-17 16:47:19 +03:00
407 B
407 B
LiveEditor
The LiveEditor component can be used in React components outside of markdown code fences.
When used within a ScopeProvider component, there's no need to pass a custom scope
object.
import React from 'react'
import { LiveEditor } from '@compositor/x0/components'
const code = `<Button>Hello</Button>`
export default props =>
<LiveEditor
code={code}
/>