Download Airbnb_clone/src/Card.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Airbnb_clone/src/Card.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Airbnb_clone/src/Card.js
-
curl -L -o Card.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Airbnb_clone/src/Card.js
390 Bytes
| import React from 'react'; | |
| import './Card.css' | |
| function Card({ src, title, description, price }) { | |
| return ( | |
| <div className='card'> | |
| <img src={src} alt="" /> | |
| <div className="card__info"> | |
| <h2>{title}</h2> | |
| <h4>{description}</h4> | |
| <h3>{price}</h3> | |
| </div> | |
| </div> | |
| ) | |
| } | |
| export default Card | |