Worked with React
#100daysofcode Day 45

What setter is for useState, dispatch is for useReducer. React by default would render a parent component with the child components but it becomes problematic when the re-rendering continues even though it detects no changes, that's called unnecessary re-renderings.
Today, I learned some of these problems that occur with re-rendering and possible ways to solve them by introducing and calling the required hooks at the specific places. There is no need consistently re-rendering a component that will be discarded in the commit stage, the default event should be prevented to promote optimization.