I'm trying to use callback of setState() in order to check that the state was changed correctly. However, I get an error Expected 1 arguments, but got 2.
   setCurrentLength(300, () => {
      console.log('Current length ', currentLength);
   });
How to solve it? Thanks
 
    