Comment by recursive
1 day ago
Not technically, but they sure don't have to make it easy. Getting an element reference is clearly not the optimized-for use case. The docs even warn against it.
> Refs are an escape hatch. Manually manipulating another component’s DOM nodes can make your code fragile.
Using HTML features doesn't have to mean manipulating another component's nodes.
But sometimes it does.
And that’s different from the primary use case of refs
1 reply →