Auto suggestion in React | Machine coding question | JavaScript Interview Question - 44

preview_player
Показать описание
JavaScript Interview Question - 44 | In this video, we will see how to solve a medium-difficulty problem asked in frontend engineer interview to SDE1, SDE2, and SDE3.

This is a machine-coding round question that I have solved in Reactjs, in which we have been asked to create a search with auto-suggestion with the given mock API.

Loved the question? I have 120+ such solved problems in my ebook "JavaScript Interview Guide". If you are preparing for Interviews and looking for a solutions book, Get my Ebook.

Social links
Рекомендации по теме
Комментарии
Автор

Thanks for the video. One suggestion: you could have used event-delegation concept instead of attaching onClick listener to each of the items in the bottom box.
Also, implement debounce for optimising the performance.

coolme
Автор

Bro during interview we have to solve in vanilla javascript or react?

Shubham-ycnz
Автор

Bhaiya it sector me paisa hai ya phir ctc hai

vickybabu
Автор

you missed the dependency array in UseEffect

rk_modi