Dobule console show problem in react
any solution for this problem
Most likely that happens because your component is rendered 2 times so, also the console.log is executed 2 times, but i'm not sure as you didn't provide any code or information.
console.log