DOM: attributes sadness
annevankesteren.nl
DOM: attributes sadness
1–10 of 14 posts
Re: DOM: attributes sadness
#2This seems like reason enough to prefer using a virtual DOM.
Re: DOM: attributes sadness
#3This seems like reason enough to prefer using a virtual DOM.
Excuse me sir, have you accepted our lord and savior React.js into your life?
Re: DOM: attributes sadness
#4Re: DOM: attributes sadness
#5From the Javascript point of view, isnt it usually better to manipulate dom object properties instead of DOM attributes?
Re: DOM: attributes sadness
#6From the Javascript point of view, isnt it usually better to manipulate dom object properties instead of DOM attributes?
Usually yes. The jQuery docs[0] go into why they refactored their .attr into separate .prop and .attr methods way back when in v1.6.
There are also cases, such as the value property, that will also update the value attribute.
Re: DOM: attributes sadness
#7Re: DOM: attributes sadness
#8Earlier quoted context omitted.
Excuse me sir, have you accepted our lord and savior React.js into your life?
No sir, there are many alternatives. I wrote my own.
Is your library public? I'm also implementing my own right now so I am very curious about the different ways people solve this problem.
Re: DOM: attributes sadness
#9Re: DOM: attributes sadness
#10Earlier quoted context omitted.
No sir, there are many alternatives. I wrote my own.
Is your library public? I'm also implementing my own right now so I am very curious about the different ways people solve this problem.
Yes but it's very experimental: https://github.com/google/dart-tagtree/