value: string;
}
-const DEFAULT_SEARCH_DEBOUNCE = 1000;
+export const DEFAULT_SEARCH_DEBOUNCE = 1000;
class SearchBar extends React.Component<SearchBarProps> {
</Paper>
}
+ componentDidMount() {
+ this.setState({value: this.props.value});
+ }
+
componentWillReceiveProps(nextProps: SearchBarProps) {
if (nextProps.value !== this.props.value) {
this.setState({ value: nextProps.value });