You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my personal point of view.
Do not accept without doubts.
React and Declarative Programming
React draws the contents instead of me.
It means that we don’t need to modify DOM directly.
We just set the states, react draws the contents according to the states.
It is called as declarative programming.
Developer Knows What to Change
React requires additional computation to know which elements change at next state.
It’s called as Reconciliation.
In this process, react travels every sub nodes to detect which nodes need update.
But, in the normal app, developer knows which elements should change.
It does not require any calculation for finding which nodes need update.
Conclusion
React gives us some great declarative programming experiences.
It helps developer not to miss DOM updates.
But It needs more resource for that.
DOM modified by dev > DOM modified by React > DOM rewrited by dev.
The text was updated successfully, but these errors were encountered:
Intro
This is my personal point of view.
Do not accept without doubts.
React and Declarative Programming
React draws the contents instead of me.
It means that we don’t need to modify DOM directly.
We just set the states, react draws the contents according to the states.
It is called as declarative programming.
Developer Knows What to Change
React requires additional computation to know which elements change at next state.
It’s called as Reconciliation.
In this process, react travels every sub nodes to detect which nodes need update.
But, in the normal app, developer knows which elements should change.
It does not require any calculation for finding which nodes need update.
Conclusion
React gives us some great declarative programming experiences.
It helps developer not to miss DOM updates.
But It needs more resource for that.
DOM modified by dev > DOM modified by React > DOM rewrited by dev.
The text was updated successfully, but these errors were encountered: