Download Spotify-Clone/src/App.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Spotify-Clone/src/App.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Spotify-Clone/src/App.jsx
-
curl -L -o App.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Spotify-Clone/src/App.jsx
560 Bytes
| import { useContext } from "react" | |
| import Display from "./components/Display" | |
| import Player from "./components/Player" | |
| import Sidebar from "./components/Sidebar" | |
| import { PlayerContext } from "./context/PlayerContext" | |
| const App = () => { | |
| const {audioRef,track} = useContext(PlayerContext) | |
| return ( | |
| <div className="h-screen bg-black"> | |
| <div className="h-[90%] flex"> | |
| <Sidebar/> | |
| <Display/> | |
| </div> | |
| <Player/> | |
| <audio ref={audioRef} src={track.file} preload="auto"> | |
| </audio> | |
| </div> | |
| ) | |
| } | |
| export default App |