Advertisement
Eulis

acommodation-page-rebase-jsx

Oct 2nd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import Carousel from '../../components/Carousel/Carousel';
  3. import AcommodationsServices from '../../components/AcommodationServices/AcommodationServices';
  4. import AcommodationDetail from '../../components/AcommodationDetail/AcommodationDetail';
  5. import apiUrl from '../../api_url';
  6. import DescriptionSection from '../../components/DescriptionSection/DescriptionSection';
  7.  
  8. class Acommodation extends Component {
  9. componentDidMount = async () => {
  10. // const response = await fetch('/api/acomodacaos');
  11. // const acommodation = await response.json();
  12. // this.setState({
  13. // images: acommodation[0][`acomodacaofotos`]
  14. // })
  15. };
  16.  
  17. state = {
  18. images: []
  19. };
  20.  
  21. render() {
  22. return (
  23. <div>
  24. <AcommodationDetail/>
  25. <DescriptionSection/>
  26. <AcommodationsServices/>
  27. {/* <Carousel images={ this.state.images } /> */}
  28. </div>
  29. );
  30. }
  31. }
  32.  
  33. export default Acommodation;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement