Explain the work of React JS in MERN stack?
React JS generates a virtual document object model (dom).
When a component’s state changes, it first utilises the “diffing” approach to determine what has changed in the virtual domain.
The second stage is reconciliation, which involves updating the DOM with the changes found in the diff.