Last active
October 11, 2015 21:15
-
-
Save lukewestby/b21166283074e1950eb1 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 { MidiDevice } from 'hypothetical-react-midi'; | |
import { render } from 'react-dom'; | |
function App({ input, output }) { | |
return ( | |
<MidiDevice input={input} output={output}> | |
// ... | |
</MidiDevice> | |
); | |
} | |
findMidiDevices('Launchpad') | |
.then(({ input, output }) => { | |
render( | |
<App input={input} output={output} />, | |
document.querySelector('main') | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment