
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
react-algolia-places
Advanced tools
A simple but powerful React.js wrapper around fantastic Algolia's place !
A simple but powerful React.js wrapper around fantastic Algolia's place !
Install the package by using npm
npm install -S react-algolia-places
Or use yarn
yarn add react-algolia-places
Then import the package
import React, {Component} from 'react'
import ReactDOM from 'react-dom'
import Place from 'react-algolia-places'
ReactDOM.render(<Place />, document.getElementById('app'))
Properties | Type | Required | Default value | Effect | Example |
---|---|---|---|---|---|
onChange | function | YES | false | Fired when suggestion selected in the dropdown or hint was validated. | true |
disable | Boolean | No | false | enable/ disable the input | true |
language | String | No | navigator.language | 2 letters country code (ISO 3166-1 alpha-2) | fr |
countries | Array of strings | No | no values | Change the countries to search in. Array of two letters country codes | ['fr', 'en', 'de', 'be'] |
type | String | No | no values | Restrict the search results to a specific type. | ['city', busStop] |
useDeviceLocation | Boolean | No | false | Ask and use the device location. | true |
appId | String | No | no values | If using the authenticated API, the Application ID to use. | -- |
apiKey | String | No | no values | If using the authenticated API, the API key to use. | -- |
ℹ️ List of accepted types
:
Run the following script yarn demo
or npm run demo
and open a browser at http://localhost:3000
Our test is based on Airbnb's Enzyme, JEST and Jasime test suite, to run them use the following script yarn test
Support other Algolia's place options and Events Write Tests
FAQs
A simple but powerful React.js wrapper around fantastic Algolia's place !
The npm package react-algolia-places receives a total of 12 weekly downloads. As such, react-algolia-places popularity was classified as not popular.
We found that react-algolia-places 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.