An open API service indexing awesome lists of open source software.

https://github.com/frontarm/demoboard

Demoboard live code editor
https://github.com/frontarm/demoboard

Last synced: 14 days ago
JSON representation

Demoboard live code editor

Awesome Lists containing this project

README

        

Demoboard
=========

An embeddable live editor, with every package on npm.

Getting Started
---------------

Demoboard can be embedded within any app built with Webpack -- including apps built with Create React App, Gatsby, Next.js, etc.

```bash
yarn add @frontarm/demoboard
```

```js
import React from 'react'
import { Demoboard, DemoboardGlobalStyles } from '@frontarm/demoboard'

const initialSources = {
'/index.js': `
import React from 'react@experimental'
import ReactDOM from 'react-dom@experimental'

const root = ReactDOM.createRoot(
document.getElementById('root')
)
root.render(

Hello, world!

)`,
}

const App = () => {
return (
<>


>
)
}
```

Contributing
------------

```bash
yarn install
yarn build
cd examples
yarn start
```