nst-guide / web

Mapping website for National Scenic Trails
https://nst.guide
GNU General Public License v3.0
5 stars 0 forks source link

Switch default map unit to metric based on ip location #37

Open kylebarron opened 4 years ago

kylebarron commented 4 years ago

By the way, could you do something like

this.state = {
    a=“hi”
} = this.props.initialState

If there are other items in the props object, do those get added to state or are only the selected names kept?