From 793e2dbf5046245312942a36605124b015710c81 Mon Sep 17 00:00:00 2001 From: Theodor Vararu Date: Tue, 30 May 2017 15:42:57 +0100 Subject: [PATCH] Update usage section in README - Clarify usage with and without module systems - Clarify basic usage with a container `
` --- README.md | 49 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 465f96a9..6d98eec2 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ ## Installation / usage -### Using npm +### Using npm and a module system Install it by running: @@ -27,45 +27,62 @@ Install it by running: npm install --save accessible-autocomplete ``` -Import it using a module system like Webpack: - -```js -import accessibleAutocomplete from 'accessible-autocomplete' -``` - -Or using a script tag: +The `accessibleAutocomplete` function will render an autocomplete `` and its accompanying suggestions and `aria-live` region. Your page should provide a `