项目
在 GitHub 查看
Tintef/react-google-places-autocomplete
关于
适用于 React 的 Google Places 自动补全输入框,可全面自定义。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
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 buildornpm 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
探索相关项目
加载中…