import React, { Component } from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import * as actions from './nameSearch.actions' class NameSearchQuery extends Component { state = { value: null } handleInput(value) { this.setState({ q: value }) if (value.trim().length > 1) { this.props.actions.search(this.props.payload, value.trim()) } } render() { return (
{'Enter your name to see if you were included in this dataset..'}
this.handleInput(e.target.value)} />