Last active
February 22, 2021 15:32
-
-
Save eamonnboyle/a17f9d2931e98420bb6771dfba6011e0 to your computer and use it in GitHub Desktop.
Weather App Tutorial - Move Search State
This file contains 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
export const LocationSearch: FC = () => { | |
const [locationSearch, setLocationSearch] = useState(''); | |
const disableSearch = locationSearch.trim() === ''; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment