Re:My take on the current React and Server Components contro...
by z3t4 on Wednesday July 05, 2023 @08:21PM
(#36609194)
You don't even have to write document.getElementById as all html ID`s are global variables.
[ Parent
| on HN ]
Re:My take on the current React and Server Components contro...
by quickthrower2 on Thursday July 06, 2023 @04:07AM
(#36612744)
Wot! That is insane. But what if the id you want is a value in a string?
Re:My take on the current React and Server Components contro...
by madeofpalk on Thursday July 06, 2023 @05:02AM
(#36613178)
window[myElementsId]
Re:My take on the current React and Server Components contro...
by quickthrower2 on Thursday July 06, 2023 @05:23AM
(#36613341)
That didn’t work in chrome console for me