I want to increase a counter, it's working but not in first calling...
const [count, setCount] = useState(0)
function handleClick(){
setCount(count+5)
console.log(count)
}
when I call for first time the function, it should shows "5" directly because I wrote console.log after the increase but in first calling, it shows 0... after (second click) it shows 5... I dont understand