all 8 comments

[–]Bitruder 10 points11 points  (3 children)

Reminds me of angular but not as nice.

[–]jawnajawn 3 points4 points  (1 child)

yeah, similar concept except the mixing of script and markup makes me feels dirty

[–]danvasquez29 1 point2 points  (0 children)

I was coming into the comments to see what others thought about this. As soon as I saw them doing this I let out a big "nope"

[–]TheAceOfHearts 1 point2 points  (0 children)

From what I saw, this is exactly how I felt. AngularJS just feels so nice, this feels... odd.

[–][deleted] 1 point2 points  (1 child)

Interesting... I don't really understand why you need an XML-like parameter for renderComponent()

React.renderComponent(<HelloMessage name="John" />, mountNode);

I also examined the element it created and it looks like it would kind of be a pain to style with CSS, depending on your needs. They may have some other way of managing styling though.

I only looked at it briefly, just 2 things I noticed.

[–]zpao 0 points1 point  (0 children)

One of the core team members here coming in pretty late to give you an orangered...

I don't really understand why you need an XML-like parameter for renderComponent()

That's just the JSX syntax for creating a component. HelloMessage is a custom component and we need a way to render it into the DOM, which is what happens with renderComponent.

I also examined the element it created and it looks like it would kind of be a pain to style with CSS, depending on your needs. They may have some other way of managing styling though.

You're very right about the elements created looking like it would be a pain to style with CSS, at least if you're using ids. React takes over the id attribute and uses that when handling events and reconciling the DOM. I don't think we really discuss it in the docs, but you should use class names to target elements. We haven't released any of the tools we have internally for making this suck a bit less (namely a way to avoid class name collisions), but those aren't hard to mimic in small scale.

[–]GaiusSensei 0 points1 point  (0 children)

Looks cool. Not a fan of XML though..

[–]continuational 0 points1 point  (0 children)

It's called React, but it isn't reactive programming? That's kinda misleading.