Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created February 22, 2021 15:26
Show Gist options
  • Save eamonnboyle/062ebe25f1120db8c45c0db78e41ae2b to your computer and use it in GitHub Desktop.
Save eamonnboyle/062ebe25f1120db8c45c0db78e41ae2b to your computer and use it in GitHub Desktop.
Weather App Tutorial - Add a location
<button onClick={() => setLocations([locationSearch, ...locations])}>Search</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment