0.0.1-alpha2 • Published 8 years ago

ban-autocomplete-react v0.0.1-alpha2

Weekly downloads
7
License
ISC
Repository
github
Last release
8 years ago

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