Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   SimpleMap = () => {
  2.     return (
  3.       <GoogleMap
  4.         defaultZoom={12}
  5.         defaultCenter={{ lat: 49.731250, lng: 18.643450 }}
  6.       ></GoogleMap>
  7.     );
  8.   }
  9.  
  10.   MapWrapped = withScriptjs(withGoogleMap( this.SimpleMap ));
  11.  
  12. //czemu wywala bląd jesli dam wywolanie funkcji SimpleMap?
  13. //gorne rozwiazanie dziala, dolne nie.
  14. //  MapWrapped = withScriptjs(withGoogleMap( this.SimpleMap() ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement