Download Netflix-Clone/src/Components/CustomButton/CustomButton.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CustomButton/CustomButton.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CustomButton/CustomButton.js
-
curl -L -o CustomButton.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Netflix-Clone/src/Components/CustomButton/CustomButton.js
319 Bytes
| import React from "react"; | |
| import "./CustomButton.scss"; | |
| const CustomButton = ({ children, signin, ...otherProps }) => { | |
| return ( | |
| <button | |
| className={`${signin ? `signin` : null} custom-button`} | |
| {...otherProps} | |
| > | |
| {children} | |
| </button> | |
| ); | |
| }; | |
| export default CustomButton; | |