DEV Community

Discussion on: Top Interview Questions for Frontend Developers(React)

Collapse
 
ortonomy profile image
πŸ…–πŸ…‘πŸ…”πŸ…–πŸ…žπŸ…‘πŸ…¨ πŸ…žπŸ…‘πŸ…£πŸ…žπŸ…

Odd interview questions - if I wanted to know how much a developer knew about React I’d be asking more about:

When do you deploy state vs. refs?
What are some gotchas of useEffect?
Under what conditions should you optimise using memo / callback?

For data only components, it’s much more effective these days to export logic out to a hook or render props - there are serious flaws with HoCs…

Collapse
 
abhishekraj272 profile image
Abhishek Raj

Yes those questions can be asked if you are interviewing for intern/junior dev position.
If you are interviewing for senior dev position, more design/optimization questions are asked.

Collapse
 
ortonomy profile image
πŸ…–πŸ…‘πŸ…”πŸ…–πŸ…žπŸ…‘πŸ…¨ πŸ…žπŸ…‘πŸ…£πŸ…žπŸ…

Not really. Nothing you’ve listed is really β€˜senior’

Thread Thread
 
abhishekraj272 profile image
Abhishek Raj

Yes I have only mentioned common react questions, not HLD or LLD questions.

Collapse
 
ortonomy profile image
πŸ…–πŸ…‘πŸ…”πŸ…–πŸ…žπŸ…‘πŸ…¨ πŸ…žπŸ…‘πŸ…£πŸ…žπŸ… • Edited

Depending on the answers to my questions, I know: the above would really show an understanding of how react works and therefore an ability to:

  • know how react decides to re-render (e.g. referential equality)
  • know when & why to use imperative escape hatches over the declarative nature of react
  • know when & why to optimize performance

Subjects I would not really expect a junior/intern to know much about.

Thread Thread
 
abhishekraj272 profile image
Abhishek Raj

Its all about what are requirements of developers in which country.
In my country, even interns are required to know

  1. When to use useState/useRef?
  2. How to use useEffect?
  3. When/How to optimise using memo/callback?
Collapse
 
sa_webb profile image
Austin Webb

Is there by chance anyway you could provide a brief answer to β€œwhat conditions should you optimize memo / callback?”

I’m a β€œjunior” dev and would like to understand this. The reason why I’m asking is because everything I’ve read online regarding this topic has been more theory than application.

I would greatly appreciate any input that you have to give. Cheers

Collapse
 
ortonomy profile image
πŸ…–πŸ…‘πŸ…”πŸ…–πŸ…žπŸ…‘πŸ…¨ πŸ…žπŸ…‘πŸ…£πŸ…žπŸ…

Sure, I'll write an article on it and link back here.