Pergunta de entrevista da empresa Chegg

Implement a typeahead feature from scratch, on a whiteboard

Resposta da entrevista

Sigiloso

8 de jul. de 2016

Using the context of React/Redux, created a component that would dispatch an action and receive props to handle the response. I think it satisfied them up until the point that they wanted to know how I would debounce the server requests. This isn't something I've not personally had to set up from scratch (have previously used libraries), so I pondered around a bit. Yet I believe I came up with a good method by requiring a minimum time between onchahge events. Just ran out of time while implementing it...