Javascript – Why does React render also if there is no change in state/ UI
I have a logout button in header which only changes its state once on click from login to logout. So the total no. of renders should be 2 when app loads on first click of login button which changes to…