Skip to content

Instantly share code, notes, and snippets.

@samsch
Forked from dagda1/connect.js
Last active December 30, 2015 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsch/e1c72247b18106c10682 to your computer and use it in GitHub Desktop.
Save samsch/e1c72247b18106c10682 to your computer and use it in GitHub Desktop.
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