Typeahead coding exercise

Create a typeahead search field that provides suggestions based on what the user types. We’ve included the base design but feel free to add anything that will improve the user experience.

Initital state

With suggestions

Design

It's not important to match the exact style of the demo, but here are some properties to help you get started:

Data set

Data set to query in the implementation.

[
  "Alexa",
  "Amber",
  "Benjamin",
  "Beyoncé",
  "Cameron",
  "Dennis",
  "Emily",
  "François",
  "Gonzalo",
  "Henry",
  "Icarus",
  "Jean-Fredirec",
  "Jessica",
  "John-Jefferson",
  "Kenneth",
  "Katie",
  "Laura",
  "Mateo",
  "Maximina",
  "Madison",
  "Nicholas",
  "Olivero",
  "Pamela",
  "Pablo",
  "Quinten",
  "Rodrigo",
  "Stella",
  "Tomas",
  "Usher",
  "Veronica",
  "Washington",
  "Xochitl",
  "Yvonne",
  "Zenon"
]
        

Development environment

You are welcome to use the third-party view framework of your choice, or no framework at all. Examples of view frameworks: Ember, Vue.js, React, Angular.

Please make your code shareable by:

Please note, you cannot use third-party libraries that bring in complete components with full interactions (JS), CSS and markup. Examples: Bootstrap, Material design. Reason: The purpose of the exercise is to see how you would build this component from scratch. We’ll want to have many opportunities to discuss the choices you make relating to mark-up, styling, and interactions.

Preparing for your interview

Be prepared to: