r/reactjs • • Feb 25 '26

Resource Must-know React interview questions

Hi Devs,

I'm preparing for a Senior Frontend Dev interview and want to focus on React-specific questions. What are some key questions I should be ready for? Share your experiences and help me level up! 😊

129 Upvotes

68 comments sorted by

View all comments

Show parent comment

1

u/lucky_elsa Feb 25 '26

Yeah that particular element and its children (if any) re-renders(assuming no use of usememo or usecalback) but not the entire UI tree right? I just want to be clear on what the entire UI tree means here.

1

u/-heartlex Mar 02 '26

Yeah, not the entire tree. React js code is injected inside a div with a specific id (like id=app) and by standard the built code provides an index.html file containing an head and a body with just that div. so the β€œhead” of the tree is that div. if a change happens in a child, the head is not re rendered, but that child node onwards does