1
1
mirror of https://github.com/c8r/x0.git synced 2024-09-17 16:47:19 +03:00
x0/docs/components/LiveEditor.md
Brent Jackson 007ac302a9 Edit docs
2018-06-23 21:54:39 -04:00

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}
  />