Skip to content

Instantly share code, notes, and snippets.

@riccardolardi
Created June 4, 2019 12:43
Show Gist options
  • Save riccardolardi/91193af4b501d4c81b02bdf5bfdf8cea to your computer and use it in GitHub Desktop.
Save riccardolardi/91193af4b501d4c81b02bdf5bfdf8cea to your computer and use it in GitHub Desktop.
this.setState(state => {
view: {
...state.view,
lat: coords.lat,
lon: coords.lon
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment