Member-only story
SearchBox Implementation in React
From scratch (and a bit of philosophy)
AI could solve this implementation in about 10 seconds. You can learn the basics of how to do it by asking the same AI to explain it as if you were 10 years old. Maybe 10 minutes of reading will get you the core concepts? And then you can reimplement it again on an online code editor in another 30 minutes, with some reference help?
The way I learn things or code has changed dramatically in the last couple of years. However, coding interviews and knowledge that is tested haven’t so much.
Now, that’s a problem. Questions like this frequently appear in LLD rounds of front-end interviews where you are required to code the solution without AI or any supercharged auto-completes — right from your muscle memory in a time-constrained environment.
I hope interviews are more holistic than this. I mean, think about it. The difference between someone cracking an interview or not is all dependent on how well they retain the memory of structured lines of code and reproduce them in a pressurized, time-constrained environment.
The ability to read and recognize correct code is pretty important, but writing from memory quickly requires some practice, just like the old days when people used to learn to get perfect answers.