
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
chalo-location-search-input
Advanced tools
A React component to build a customized UI of https://github.com/hibiken/react-places-autocomplete
Hi! It's a React component to build a customized UI of https://github.com/hibiken/react-places-autocomplete.
It's too a component Google Maps Places Autocomplete for React.
Install-package
- npm install chalo-location-search-input
- yarn add chalo-location-search-input
It connects to the google API and returns the validated address
You can see the example complete in directory src/example/ExampleImplementation.js
// src/example/ExampleImplementation.js
...
//It's a method when response ok
handleSuccess = response => {
console.log("success: Direction valid",response);
};
//It's a method when response bad
handleError = response => {
console.log("error: Direction inavlid",response);
};
render () {
return (<LocationSearchInput
handleSuccess={this.handleSuccess}
handleError={this.handleError}
/>)
}
Additional note, the Google API script is required.
//public/index.html
...
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR-KEY-GOOGLE-API&libraries=places"></script>
</body>
...
FAQs
A React component to build a customized UI of https://github.com/hibiken/react-places-autocomplete
The npm package chalo-location-search-input receives a total of 0 weekly downloads. As such, chalo-location-search-input popularity was classified as not popular.
We found that chalo-location-search-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.