Posts by Natã Lopes • 25 points
2 posts
-
0
votes1
answer401
viewsQ: onChange on React not working!
This function is giving error saying that the event is null event: handleChange(event) { this.setState(prevState => ({ equipe: { ...prevState.equipe, nome: event.target.value } })) } input:…
reactasked Natã Lopes 25 -
0
votes1
answer54
viewsQ: Invert boolean variable React.js
onUpdateItem = i => { this.setState(state => { const subtarefa = state.subtarefa.map((item, j) => { if (j === i) { item.status = !item.status return item; } else { return item; } }); return…