Hacker News new | ask | show | jobs
by LilBibby2342 3711 days ago
Quick Q from a rookie on the topic: what's the primary advantage behind React being declarative in how its built?
1 comments

The big advantage of declarative frameworks (not just React - many are moving in this direction) is that reasoning about your application's state becomes much easier. This is because when you take a declarative approach, your application's state is kept separate from the DOM, and the DOM is a function of the application's state.