Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <div>
  2. <div>
  3. <h2>Hello my friend!</h2>
  4. <ul>
  5. { this.props.names.filter(function(f){
  6. return f.friend === true
  7. }).map(function(f){
  8. return <li>{f.name}</li>
  9. })}
  10. </ul>
  11. </div>
  12. <div>
  13. <h2>No, you are not my friend!</h2>
  14. <ul>
  15. { this.props.names.filter(function(f){
  16. return f.friend === false
  17. }).map(function(f){
  18. return <li>{f.name}</li>
  19. })}
  20. </ul>
  21. </div>
  22. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement