google places autocomplete react

JavaScript
import React from 'react';import GooglePlacesAutocomplete from 'react-google-places-autocomplete';// If you want to use the provided cssimport 'react-google-places-autocomplete/dist/index.min.css'; const Component = () => (  <div>    <GooglePlacesAutocomplete      onSelect={console.log}    />  </div>); export default Component;npm install --save react-google-places-autocomplete  oryarn add react-google-places-autocomplete
Source

Also in JavaScript: