Download IMDB-clone-react-redux/src/components/elements/Navigation/Navigation.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/IMDB-clone-react-redux/src/components/elements/Navigation/Navigation.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/IMDB-clone-react-redux/src/components/elements/Navigation/Navigation.js
-
curl -L -o Navigation.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/IMDB-clone-react-redux/src/components/elements/Navigation/Navigation.js
443 Bytes
| import React from 'react'; | |
| import { Link } from 'react-router-dom'; | |
| import PropTypes from 'prop-types'; | |
| import './Navigation.css'; | |
| const Navigation = ({ movie }) => ( | |
| <div className="rmdb-navigation"> | |
| <div className="rmdb-navigation-content"> | |
| <Link to="/"> | |
| <p>Home</p> | |
| </Link> | |
| <p>/</p> | |
| <p>{movie}</p> | |
| </div> | |
| </div> | |
| ) | |
| Navigation.propTypes = { | |
| movie: PropTypes.string | |
| } | |
| export default Navigation; |