-
-
Save samsch/e1c72247b18106c10682 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 FunctionPlot from './function-plot'; | |
require("../../css/functions.css"); | |
function mapStateToProps(state) { | |
return { | |
expression: state.expression | |
}; | |
}; | |
class FunctionContainer extends Component { | |
render() { | |
return ( | |
<FunctionPlot {...this.props} /> | |
); | |
} | |
}; | |
export default connect(mapStateToProps)(FunctionContainer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment