Next: Plan future API
See original GitHub issuePerfect-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={...} />
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
API Unveils Ten-Point Policy Plan to Restore US Energy ...
WASHINGTON, June 14, 2022 – The American Petroleum Institute (API) today released a 10 in 2022 plan – 10 policies that policymakers can ......
Read more >Retrieve an upcoming invoice – curl - Stripe API reference
This is used to determine the date of the first full invoice, and, for plans with month or year intervals, the day of...
Read more >Futures - Dask documentation
Dask futures reimplements most of the Python futures API, allowing you to scale your Python futures workflow across a Dask cluster with minimal...
Read more >API Web Service - National Weather Service
The National Weather Service (NWS) API allows developers access to critical forecasts, alerts, and observations, along with other weather data.
Read more >Welcome to our future-generation platform! - Slack API
Our new platform is all about: ... You'll need to imagine a future for number three, a future where everything your app can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
One feedback regarding the API,
renderEditor={Live.Editor}
should probably beeditor={Live.Editor}
oreditorComponent={Live.Editor}
to distinguish it from a render callback, orrenderEditor={props => <Live.Editor {...props} />}
Regarding Bable/Babel. If Buble isn’t swapped out then it probably makes sense to contribute back to it on a few key tickets that follow some pretty commonly used features in the react/babel community that don’t currently work in react-live:
https://github.com/Rich-Harris/buble/issues/123 https://github.com/Rich-Harris/buble/pull/125