Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created February 23, 2021 10:26
Show Gist options
  • Save eamonnboyle/9ba05b30f6ee252a01f187f4c1aa3759 to your computer and use it in GitHub Desktop.
Save eamonnboyle/9ba05b30f6ee252a01f187f4c1aa3759 to your computer and use it in GitHub Desktop.
Weather App Tutorial - State Updates
...
const App: FC = () => {
const [locations, setLocations] = useState<WeatherLocation[]>([]);
const [error, setError] = useState('');
const [warning, setWarning] = useState('');
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment