Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created February 22, 2021 15:27
Show Gist options
  • Save eamonnboyle/745d97c426f6d14460951f257a9db3a0 to your computer and use it in GitHub Desktop.
Save eamonnboyle/745d97c426f6d14460951f257a9db3a0 to your computer and use it in GitHub Desktop.
Weather App Tutorial - Tidy Up State
function App() {
const [locationSearch, setLocationSearch] = useState('');
const [locations, setLocations] = useState<string[]>([]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment