MCPcopy Index your code
hub / github.com/WebDevSimplified/spotify-clone / chooseTrack

Function chooseTrack

client/src/Dashboard.js:20–24  ·  view source on GitHub ↗
(track)

Source from the content-addressed store, hash-verified

18 const [lyrics, setLyrics] = useState("")
19
20 function chooseTrack(track) {
21 setPlayingTrack(track)
22 setSearch("")
23 setLyrics("")
24 }
25
26 useEffect(() => {
27 if (!playingTrack) return

Callers 1

handlePlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected