Download NetflixClone/src/hoc/Layout.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/hoc/Layout.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/hoc/Layout.js
-
curl -L -o Layout.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/hoc/Layout.js
345 Bytes
| import React from 'react' | |
| import useNavbar from 'hooks/useNavbar' | |
| const Layout = props => { | |
| const navBar = useNavbar() | |
| const style = { | |
| background: '#141414', | |
| minHeight: '100vh' | |
| } | |
| return ( | |
| <div style={style}> | |
| {navBar} | |
| {props.children} | |
| </div> | |
| ) | |
| } | |
| export default Layout |