Posts by Juliano Gomes • 33 points
2 posts
-
1
votes1
answer29
viewsQ: How to set a state that is in a constant with React with a function
I have the following code snippet: const [aulas, setAulas] = React.useState([{ id:1, title: 'Aula 1', descricao: 'Matemática', }, { id:2, title: 'Aula 2', descricao: 'Portugues', }]) function…
-
2
votes1
answer17
viewsQ: How to consume a constant in another JSX component
I have a constant: const dados = [{ id: 1, nome: 'Juliano', idade: 25, descricao: 'Front-end', }, { id: 2, nome: 'Italo', idade: 29, descricao: 'Back-end', }] I export all this constant, via: export…