Guest User

Untitled

a guest
Jul 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ```jsx
  2.  
  3. // src/compositions/LocationSearch/List.js
  4.  
  5. import React from 'react';
  6. import withLocations from './withLocations';
  7.  
  8. function List(props) {
  9. return (
  10. <LocationSearch.List>
  11. { this.props.locations.map((loc, i) => (
  12. <LocationSearch.ListItem>
  13. <div>{loc.name}</div>
  14. <div>{loc.address}</div>
  15. </LocationSearch.ListItem>
  16. ))}
  17. </LocationSearch.List>
  18. );
  19. }
  20.  
  21. export default withLocations(List);
  22. ```
Add Comment
Please, Sign In to add comment