I am calling a function to handle the video play on click and there I want to set consecutive states using useState hook. But I want to wait for first one before cursor goes to next setState(useState Hook) without using useEffect hook to monitor it. This is a function just as an example.
const videoPlayHandler = () => {
setIsPaused(true); //wait for this one
setIsPlay(false); //run just after first state is done
}