News for hackers. Stuff that matters.
Re:Is ReactJS really fast? by gcb0 on Monday June 01, 2015 @12:56PM (#9640168)
> pleasant to work with

if you're a startup or small shop.

if you have to deal with any native code that expects to know something about the dom, now you just forced that code to do expensive and constant polling algos because you completely pulled the dom from under its feet.

Re:Is ReactJS really fast? by nroman on Monday June 01, 2015 @01:19PM (#9640398)
> small shop

Like Facebook? Netflix? The BBC?

Re:Is ReactJS really fast? by gcb0 on Monday June 01, 2015 @02:58PM (#9641249)
netflix = have their own renderer. that is lot of hours of good engineers dedicated to that.

facebook = probably hack away all the low level stuff they need to tweak.

bbc = they probably have the same problem we have here. that does not stop them or we to boast that we use react all over the place. doesn't mean we like it.

Re:Is ReactJS really fast? by ConAntonakos on Monday June 01, 2015 @10:03PM (#9643400)
He forgot to add Airbnb to that list.
Re:Is ReactJS really fast? by stephen_cagle on Monday June 01, 2015 @09:53PM (#9643364)
React isn't polling, it is callbacks and recursive functions.
Re:Is ReactJS really fast? by zem on Monday June 01, 2015 @02:13PM (#9640856)
i'm not a web dev, so i could be missing something obvious, but i can't think of any use cases for inspecting the dom from native code. example?
Re:Is ReactJS really fast? by mc808 on Monday June 01, 2015 @02:56PM (#9641227)
The comment makes some sense if you replace "native" with "plain" or "vanilla" JavaScript.
Re:Is ReactJS really fast? by gcb0 on Monday June 01, 2015 @03:01PM (#9641268)
yep. like 99.9% of the code ad networks expect. they want to check DOM state to make sure you are not a sleazy publisher hiding the ads under the content or if you are not being shown in an iframe on some porn site.

with react, they will get inconclusive results because their code might run while they are virtualized or god forbid during the render. and you will only get garbage ads because now they consider you a garbage publisher.

Re:Is ReactJS really fast? by tracker1 on Monday June 01, 2015 @08:52PM (#9643182)
Write your wrapper for ads as a component that renders a div... bind your ad-logic as part of the componentDidMount() event handler. The results should be consistent.
Re:Is ReactJS really fast? by zem on Monday June 01, 2015 @04:35PM (#9641954)
oh! yeah, that does make more sense; i was thinking of something like a qt webview.