Wyzwalacz modal po pewnym czasie reakcja JS

useEffect(()=>{
  setTimeout(()=>{
    setShow(true)
  }, 2000)
}, [])
Mushy Mallard