3 ms·
As a person who is using react, this is a welcome change! I'm glad they're taking time to get rid of the kludgy code that wasn't quite consistent.
by hardwaresofton 12y ago
As a person who is using react, this is a welcome change! I'm glad they're taking time to get rid of the kludgy code that wasn't quite consistent.
- jbhatab 12y agoHey can you explain how they improved consistency because I just don't understand how the new changes help. I may just not understand what they did at a fundamental level.
- hardwaresofton 12y agoIMHO it's more consistent because the things that react has been modifying have been Elements all along (DOM Elements). React called them components, and it's always felt like a kludge to create some thing that WAS a DOM element (boiling down to React.DOM), and then set it's "tagname" as an after-thought. Things like prop are tied directly to the DOM Element, further suggesting that the "thing" the component was, was actually a DOM Element. I guess it's really subjective, but I think it'll be clearer to explain to people now: "React manages creation and rendering of dynamic/intelligent (DOM) Elements" (bonus points for no overlap with the Web Components terminology) But then again a lot of this is just my opinion, consistency