Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ListaDeTarefas extends Component{
- render(){
- return(
- <div className="Lista">
- <ul>
- {this.props.tarefas.map((x,key)=> {
- var editor = null;
- if (this.props.edita == key)
- editor = (<EdicaoTexto item={key} valor={x} />);
- return (
- <li>
- <a onClick={this.props.clickhandler}>{x}</a>
- {editor}
- </li>
- );
- })
- }
- </ul>
- </div>
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement