Download calculator/src/component/Display.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/calculator/src/component/Display.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/calculator/src/component/Display.js
-
curl -L -o Display.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/calculator/src/component/Display.js
334 Bytes
| import React from "react"; | |
| import PropTypes from "prop-types"; | |
| import "./Display.css"; | |
| export default class Display extends React.Component { | |
| static propTypes = { | |
| value: PropTypes.string, | |
| }; | |
| render() { | |
| return ( | |
| <div className="component-display"> | |
| <div>{this.props.value}</div> | |
| </div> | |
| ); | |
| } | |
| } | |