Download e-commerce-site/src/components/Default.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 797 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/e-commerce-site/src/components/Default.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/e-commerce-site/src/components/Default.js
-
curl -L -o Default.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/e-commerce-site/src/components/Default.js
797 Bytes
| import React, { Component } from 'react' | |
| export default class Default extends Component { | |
| render() { | |
| console.log(this.props); | |
| return ( | |
| <div className="container"> | |
| <div className="row"> | |
| <div className="col-10 mx-auto text-center text-title"> | |
| <h1>error</h1> | |
| <h1 className="display-3">404</h1> | |
| <h2>page not found</h2> | |
| <h3>the requested URL | |
| <span className="text-danger"> | |
| {this.props.location.pathname} | |
| </span>{""} | |
| was not found</h3> | |
| </div> | |
| </div> | |
| </div> | |
| ) | |
| } | |
| } | |