React component with a 3 button(+,-,submit) counter that doesnt update
so i have this component in my app called YearSelection that does not update instantly on click even though i think it should. why? it does update when the component is closed and opened again.