import React from 'react'; import { bindActionCreators } from 'redux'; import * as actions from '../actions/exploreActions'; import { connect } from 'react-redux'; const propTypes = { actions: React.PropTypes.object, }; class SqlClause extends React.Component { onChange(key, event) { this.props.actions.setFormData(key, event.target.value); } render() { return (
SQL
Where
Having
); } } SqlClause.propTypes = propTypes; function mapStateToProps() { return {}; } function mapDispatchToProps(dispatch) { return { actions: bindActionCreators(actions, dispatch), }; } export default connect(mapStateToProps, mapDispatchToProps)(SqlClause);