ban-autocomplete-react

0.0.1-alpha2 • Public • Published

Base adresse nationale autocomplete vox (React)

React component to autocomplete addresses using the Base adresses nationale (BAN) API.

Requirements

This widget is written in ECMA 2015.

  • Node
  • NPM

Install

cd path/to/your/project
npm install ban-autocomplete-react

Setup

Simple script reference

<body>
  <div>
    <script src="public/bundle.js" type="text/javascript"></script> 
  </div>
</body>

See an example in index.html.

Webpack

import AutocompleteBan from 'ban-autocomplete-react/client/public/bundle.js';
//If you have a div#widget-container to show the widget
render(<AutocompleteBan/>, document.getElementById('widget-container'));

See an example in index.jsx.

Development

Rebuild the component every time the sources change

npm run dev

Build the component

npm run build

Package Sidebar

Install

npm i ban-autocomplete-react

Weekly Downloads

2

Version

0.0.1-alpha2

License

ISC

Last publish

Collaborators

  • cmaudry
  • tgery