vladmakohon / react_autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Autocomplete

You have an array of people. Implement the Autocomplete component using Bulma Dropdown that will suggest people matching an entered text.

The task does not have tests or a working example

  • suggestions should appear after some delay in typing (debounce);
  • the delay should be customizable via props;
  • show No matching suggestions message if there are no people containing the entered text;
  • don't run filtering again if the text has not changed (pause in typing happened when the text was the same as before)
  • hide suggestions on text change;
  • save selected suggestion text to the input on click and close the list;
  • pass selected person to the onSelected callback passed via props;
  • add an h1 to the App showing Name (born - died) of the selected person or No selected person.

Instructions

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 91.2%Language:JavaScript 5.8%Language:HTML 2.7%Language:SCSS 0.3%