-
Notifications
You must be signed in to change notification settings - Fork 258
Closed
Description
Perfect-world-wishful-thinking-optimal-API:
// Live is the default export and should render
// a nice output with minimal props
<Live
code=""
scope={{ SomeComponent }}
renderEditor={Live.Editor}
{...defaultProps}
/* defaultProps: */
transform={bubleTransform}
transformOutput={bubleOutput}
transformError={bubleErrors}
/>
//////////////
<LiveProvider code="">
<Live.DefaultLayout>
<Live.Editor />
<Live.Preview />
<Live.Error />
</Live.DefaultLayout>
</LiveProvider>
// LiveProvider is an export and all "broken out"
// bits of react-live are exported
// Live.Editor is context wrapped
// but import { Editor } is also present
//////////////////
// The normal editor doesn't come with any defaults?
<Editor code="" language="jsx" Prism={...} theme={...} padding={...} />
Metadata
Metadata
Assignees
Labels
No labels