Skip to content

Instantly share code, notes, and snippets.

@seriousManual
Last active January 13, 2020 16:11
Show Gist options
  • Save seriousManual/dc995e4e6600ca4e70791584b6d93435 to your computer and use it in GitHub Desktop.
Save seriousManual/dc995e4e6600ca4e70791584b6d93435 to your computer and use it in GitHub Desktop.
import React from 'react'
import ReactDOM from 'react-dom';
import LaunchpadRenderer from './renderer'
import { Mock } from 'lunchpad'
import Shim from './shim/App';
import Wild from './examples/Wild' // random colors
import GoL from './examples/gol/Gol' // game of life: set the initial population via buttons, start with the red button
import Drawing from './examples/Drawing' // drawing board: choose the color with the top buttons, "draw" by pressing buttons
import Text from './examples/Text' // text example
const mock = new Mock()
mock.on('draw', () => {
ReactDOM.render(<Shim launchpad={mock} />, document.getElementById('root0'))
})
mock.emit('draw')
LaunchpadRenderer.render(<Wild />, mock);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment