See more
…ce elements in the form of components. Each component has a state and props. The state controls the rendering of the component. Every time the state of the component changes it is re-rendered. The props can be…