Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- <div>
- <h2>Hello my friend!</h2>
- <ul>
- { this.props.names.filter(function(f){
- return f.friend === true
- }).map(function(f){
- return <li>{f.name}</li>
- })}
- </ul>
- </div>
- <div>
- <h2>No, you are not my friend!</h2>
- <ul>
- { this.props.names.filter(function(f){
- return f.friend === false
- }).map(function(f){
- return <li>{f.name}</li>
- })}
- </ul>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement