Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> In React, using JSX means you can create components and mount them on top of the existing elements on the page.

I am not sure this analysis is entirely correct.

In case of server-side-rendered React pages, React takes the html that arrives from the server and makes it interactive ("hydrates" it, according to the common React community parlance), provided that that DOM generated from that HTML corresponds to the virtual DOM that React generates. It doesn't throw the original DOM away.



This is only if you use SSR and is the opposite of being able to render with any existing web framework.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: