Mihaela DumitrescuPosted on June 15, 2021• 6 min read
In React, a component function runs every time when the context, props or state is changed. After the component render, the component updates the real DOM with the new changes based on the component run.
Let's take the following two component as an example: