HNHacker News
TopNewBestAskShowJobs

Termina1

19 karma · joined July 16, 2014

https://github.com/Termina1
submissionscomments
Termina1··on Don't React
For example, embedded FB post. In React you can deal with it using componentShouldUpdate and others. I don't know how to deal with it in virtual-dom (package), without going deep into patching algorithm.
Termina1··on Don't React
Sometimes you have no choice, in case of embeddable objects
Termina1··on Don't React
Also, React goes with Flux, and Flux is a reactive architecture. So, if you treat React a separate module, the whole flux architecture is pretty reactive.
Termina1··on Don't React
I think that author is completely right about the part, that React has the only one reactive part — its render function. But I don't see why it makes React bad. I think it is great, fast and easy to use.

By the way, virtual-dom is a little bit early to use for production application. For example, if you have some elements in your vdom, that are changing after you render it (i.e. like buttons, embeded posts, etc.), virtual-dom will be totally confused and unpredictable. For example, it can duplicate some elements on the page.

I believe it happens because vdom depends on its internal index to traverse real dom nodes. It is still a remarkably good piece of software.

Termina1··on Ask HN: If an AI had slipped into the world would we notice?
If we mean "true" AI, I think we wouldn't. Until it would start to overrun the Net.