How can I access the updated value of the state? I am getting updated values on UI but not while accessing state value on the fly.
const OTP = () => { c