darklang / rescript-tea

The Elm Architecture for Rescript
Other
119 stars 9 forks source link

Improve use of Node vs Element #31

Open pbiggar opened 2 years ago

pbiggar commented 2 years ago

There's a lot of use of the word Node which really should be Element (only Elements have properties if I understand it right, while a Node is anything in the Dom). We also often call the Node parameter elem which is confusing.

Probably the Node variant should be called Element.