I\'ve got a little problem there and I dont know why my solution is not working properly. Here is the code:
const [progress, setProgress] = useState(0);