Skip to content

Instantly share code, notes, and snippets.

@lukewestby
Last active October 11, 2015 21:15
Show Gist options
  • Save lukewestby/b21166283074e1950eb1 to your computer and use it in GitHub Desktop.
Save lukewestby/b21166283074e1950eb1 to your computer and use it in GitHub Desktop.
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