TLDR Web Dev · ARTICLES & TUTORIALS

REACT IS A PROGRAMMING LANGUAGE, AND ITS RULES ARE SYNTAX

buildui.com5 min read

Summary from the TLDR Web Dev newsletter

Refs, which are used to reference DOM nodes, don't work in React Server Components. This limitation stems from the fact that the server doesn't have access to the DOM, which is a browser-specific concept. Allowing refs in Server Components would introduce potential issues with lexical scope and UI consistency.