|
|
|
|
|
by eunoia
1489 days ago
|
|
As I understand it, what you’re asking for is fundamentally incompatible with the paradigm itself (at least in a clean way). The whole programming experience of declarative UIs is predicated on the fact that you’re manipulating lightweight structs (really just state representations) that are rendered into heavyweight views by the system only where necessary (determined by diffing the state changes). React’s refs are an attempted answer to this very problem, and they get nasty fast. |
|
Yes, and I’m arguing that not exposing the ‘heavyweight views’ to the programmers at all is a mistake.