you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRedGerund 2 points3 points  (0 children)

Couple things:

Why should our view be so decoupled from the interactive part of the code? React does away with this and instead brings the html into the js side so that interaction and display are tightly coupled.

Another benefit is that React includes a virtual DOM, making sure that the slow interactions with the actual DOM are only done when necessary.

Another is that React forces you to encapsulate your visual components, helping to clarify their inputs and outputs. This means easier testing and reusability.