How to disappear alert after 5 seconds in JavaScript?

前端 未结 0 787
青春惊慌失措
青春惊慌失措 2020-12-09 17:25
import { useState } from \'react\'
    
    const Message = ({ variant, children }) => {
      const [timeOut, setTimeOut] = useState(null)
    
      setTimeout(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题