how to change const value in react js

Is there and science or consensus or theory about whether a black or a white visor is better for cycling? When we leave the array empty, the effect will only run once irrespective of the changes to the state it is attached to. I am speaking just from novice perspective.