Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is React That Fast as I Expect? #46

Open
kokocan12 opened this issue Jun 27, 2022 · 0 comments
Open

Is React That Fast as I Expect? #46

kokocan12 opened this issue Jun 27, 2022 · 0 comments
Labels

Comments

@kokocan12
Copy link
Owner

kokocan12 commented Jun 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant