🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

react-google-places-autocomplete

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
r

react-google-places-autocomplete

Google places autocomplete input for ReactJS.

4.1.0
latest
92

Supply Chain Security

100

Vulnerability

95

Quality

78

Maintenance

100

License

Version published
Weekly downloads
47K
1.87%
Maintainers
0
Weekly downloads
 
Created
Issues
25

License

React Google Places Autocomplete

React component for easily use Google Places Autocomplete

Getting started

Install the latest version:

npm install --save react-google-places-autocomplete
  or
yarn add react-google-places-autocomplete

Use the component!

import React from 'react';
import GooglePlacesAutocomplete from 'react-google-places-autocomplete';

const Component = () => (
  <div>
    <GooglePlacesAutocomplete
      apiKey="****"
    />
  </div>
);

export default Component;

Coming from v2? Check the migration guide

Documentation

Read The Docs

How to contribute?

  • Fork this repo

  • Clone your fork

  • Code 🤓

  • Test your changes

    For this, I like to use yalc, as it allows to emulate the process of using npm/yarn.

    • Install yalc
    • Build project with yarn build or npm run build
    • Publish the package with yalc: yalc publish
    • Add the package to your test project yalc add react-google-places-automocomplete
    • If needed, to update the package on your test project: yalc update react-google-places-autocomplete
  • Submit a PR!



Icons made by Freepik from www.flaticon.com

FAQs

Package last updated on 26 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts