Remix.run Logo
_heimdall 3 days ago

"State variables" is a section in the original article. It shows a variable in the view, "name", that holds the value separate from the DOM.

setName(value) first checks the local state variable, and if different the value is both written to the state variable and the DOM.

The GP's pattern uses getters and setters to directly read and write to the DOM, skipping the need for a local variable entirely.

lelanthran 2 days ago | parent [-]

I have an approach that I think no one else has tried before. Looking for someone to endorse me on arxiv so I can publish it.