Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ListaDeTarefas extends Component{
  2.  
  3.  
  4.     render(){
  5.       return(
  6.       <div className="Lista">
  7.         <ul>
  8.           {this.props.tarefas.map((x,key)=> {
  9.               var editor = null;
  10.               if (this.props.edita == key)
  11.                 editor = (<EdicaoTexto item={key} valor={x} />);
  12.               return (
  13.                 <li>
  14.                     <a onClick={this.props.clickhandler}>{x}</a>
  15.                     {editor}
  16.                 </li>
  17.               );
  18.           })
  19.           }
  20.         </ul>
  21.         </div>
  22.     );
  23.  
  24.  
  25.   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement