Simon
Results
1
comments of
Simon
Here is the function I call `onEnded`: ``` const handleClickNext = () => { setTrackIndex((currentTrack) => currentTrack < musicTracks.length - 1 ? currentTrack + 1 : 0 ); }; ```...
Simon
Here is the function I call `onEnded`: ``` const handleClickNext = () => { setTrackIndex((currentTrack) => currentTrack < musicTracks.length - 1 ? currentTrack + 1 : 0 ); }; ```...