import React, { Component, PropTypes } from "react"; export default class FilterBar extends Component { constructor (props) { super(props); this.handleChange = this.handleChange.bind(this); } handleChange (e) { e.preventDefault(); this.props.onUserInput(this.refs.filterTextInput.value); } render () { return (

What are we listening to today?

); } } FilterBar.propTypes = { onUserInput: PropTypes.func, filterText: PropTypes.string };