/react-hooks-select-async

Using react-select async with hooks and applying pagination

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

An example implementation of React-Select Async, using React Hooks and applying pagination with react-select-async-paginate. Implementation described on Implementing react-select Async with React Hooks and applying Pagination.

It's also hosted at https://codesandbox.io/s/react-select-async-paginate-yblq9?file=/src/SelectAsyncPaginate.js.

Packages

  • react-select - flexible and extensible Select Input control for ReactJS with multiselect, autocomplete and ajax support.

  • react-select-async-paginate - wrapper above react-select that supports pagination on menu scroll.

Installation

To use it, just clone this repo and install the npm dependencies:

$ git clone https://github.com/helmarjunior/react-hooks-select-async
$ cd react-hooks-select-async
$ npm install
$ npm start