News for hackers. Stuff that matters.
Re:Relay Technical Preview by marcusarmstrong on Tuesday August 11, 2015 @04:34PM (#10044203)
it's only what I already know, Javascript and HTML

But it's not. "className", much?

Re:Relay Technical Preview by petrbela on Tuesday August 11, 2015 @05:00PM (#10044344)
Oh boy, "className" and "labelFor". See, wasn't that hard to learn JSX if you already know HTML.
Re:Relay Technical Preview by smhg on Tuesday August 11, 2015 @06:06PM (#10044732)
I think you meant htmlFor, no? But I completely agree with the sentiment that it is nice to stay as close to plain HTML and JS as possible.
Re:Relay Technical Preview by petrbela on Tuesday August 11, 2015 @06:30PM (#10044853)
Yeah, thanks. I don't actually remember if I've ever used it :D
Re:Relay Technical Preview by marcusarmstrong on Tuesday August 11, 2015 @06:04PM (#10044725)
I'm not saying it's hard. But {?variable} isn't hard either.
Re:Relay Technical Preview by Nogs on Tuesday August 11, 2015 @04:43PM (#10044247)
Re:Relay Technical Preview by smhg on Tuesday August 11, 2015 @06:12PM (#10044758)
w3schools might have gotten a bit better lately, but please use MDN as a reference:

https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...

They offer so much more context.

Re:Relay Technical Preview by marcusarmstrong on Tuesday August 11, 2015 @04:54PM (#10044312)
Sure. But that's different than <div className="blah">.
Re:Relay Technical Preview by smhg on Tuesday August 11, 2015 @06:17PM (#10044789)
Not much. These are actually the Web API attribute names you should use when accessing these attributes from a non-HTML language (e.g. JavaScript).

The React folks didn't make them up.