Posts by Tulio Faria • 136 points
3 posts
-
0
votes1
answer364
viewsA: Unhandledpromiserejectionwarning: Error: Cannot enqueue Query after fatal error
Apparently you didn’t connect to the database before running the query. connection.connect((err) => { if(err){ console.log('não conectado ao mysql', err) }else{ app.listen(port, () =>…
-
1
votes1
answer165
viewsA: How to create components from another base component
The best way to achieve this result with React is by using composition (by the way, component inheritance is not recommended in React). What you can do in a simplified way: class Input extends…
-
1
votes2
answers489
viewsA: Problem with parole in React
The problem you must return your element directly. Your method should be something like: render(){ if (this.state.display == '0') { return () } else if (this.state.display == '1') { return() } else…