Advertisement
vandasche

Untitled

Apr 9th, 2020
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import data from './data/data';
  3. import { Card } from 'react-bootstrap';
  4.  
  5. export default class Cardloop extends Component {
  6. constructor() {
  7. super();
  8. }
  9.  
  10. render() {
  11. const {
  12. address,
  13. price,
  14. typeRent,
  15. bedroom,
  16. bathroom,
  17. city,
  18. } = this.props.data;
  19. return (
  20. <div>
  21. <div className=''>
  22. <img
  23. src='https://react.semantic-ui.com/images/avatar/large/matthew.png'
  24. className='card-img-top'
  25. ></img>
  26. </div>
  27. <div className='card-body text-dark'>
  28. <h3>
  29. {' '}
  30. {price} / {typeRent}
  31. </h3>
  32. <h5>
  33. {bedroom} Bed, {bathroom} Baths
  34. </h5>
  35. <h5>
  36. {' '}
  37. {city}, {address}
  38. </h5>
  39. </div>
  40. </div>
  41. );
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement