React, is there a way to play sound on useEffect?

前端 未结 0 1384
小蘑菇
小蘑菇 2020-12-04 16:56

I installed use-sound,

const [ play ] = useSound(sound, {interrupt: true})

then I want to play a sound when theres a data change



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