Created
January 6, 2018 22:55
-
-
Save Joeltbond/a6f01ab998d25d24901899f347d3f7c5 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, { Component } from "react"; | |
import { connect } from "react-redux"; | |
import { appMounted } from "../redux_modules/app"; | |
import MidiInput from "../components/MidiInput"; | |
class App extends Component { | |
componentDidMount() { | |
this.props.appMounted(); | |
} | |
render = () => <MidiInput notes={this.props.notes} />; | |
} | |
const mapStateToProps = state => ({ | |
notes: state.app.notes | |
}); | |
export default connect(mapStateToProps, { appMounted })(App); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment