DEV Community

Leigh Halliday
Leigh Halliday

Posted on

Google Maps & Google Places in React Tutorial

Top comments (1)

Collapse
 
alexshev profile image
Alex Shev •

A React and Places walkthrough is a good place to stress cleanup as well as initialization. Any autocomplete listener or map event handler should be disposed when the component unmounts, otherwise revisiting the form can duplicate callbacks and make a location selection look nondeterministic.