This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react" | |
// For sharing a search string among components | |
// export const searchStore = new Store(""); | |
// Register class components on mount | |
// componentDidMount() { searchStore.registerComponent(this) } | |
// And unregister on unmount | |
// componentWillUnmount() { searchStore.unregisterComponent(this) } |