Last active
January 13, 2020 16:11
-
-
Save seriousManual/dc995e4e6600ca4e70791584b6d93435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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