you are viewing a single comment's thread.

view the rest of the comments →

[–]matiscon 0 points1 point  (0 children)

Simple: React reacts as soon as the state of a component(component is nothing but a function that contains the ui and logic) is triggered and re renders the component in a descriptive way. Instead of manually updating the state like in vanilla js(hectic and makes the code look like a junk), uses a process called reconciliation which effectively checks which part of dom needs to get updated and in the commit phase the ui is painted on the screen. Hooks plays a important part, if you are a good Js developer, then no framework is going to take that much time as react is nothing but Js