Spaces:
Running
Running
lucas-wa
commited on
Commit
·
5f10035
1
Parent(s):
79462c6
Remove initial state
Browse files- web/src/App.jsx +1 -23
web/src/App.jsx
CHANGED
@@ -16,29 +16,7 @@ function App() {
|
|
16 |
|
17 |
const [menuState, setMenuState] = useState(true);
|
18 |
const [isLoading, setIsLoading] = useState(false);
|
19 |
-
const [questions, setQuestions] = useState(
|
20 |
-
{
|
21 |
-
question: "Qual a cor do céu?",
|
22 |
-
options: ["Azul", "Verde", "Amarelo", "Vermelho"],
|
23 |
-
answer: "Azul"
|
24 |
-
},
|
25 |
-
{
|
26 |
-
question: "Qual a cor da grama?",
|
27 |
-
options: ["Azul", "Verde", "Amarelo", "Vermelho"],
|
28 |
-
answer: "Verde"
|
29 |
-
},
|
30 |
-
{
|
31 |
-
question: "Qual a cor do sol?",
|
32 |
-
options: ["Azul", "Verde", "Amarelo", "Vermelho"],
|
33 |
-
answer: "Amarelo"
|
34 |
-
},
|
35 |
-
{
|
36 |
-
question: "Qual a cor do sangue?",
|
37 |
-
options: ["Azul", "Verde", "Amarelo", "Vermelho"],
|
38 |
-
answer: "Vermelho"
|
39 |
-
}
|
40 |
-
|
41 |
-
]);
|
42 |
|
43 |
const handleSubmit = async (e) => {
|
44 |
e.preventDefault();
|
|
|
16 |
|
17 |
const [menuState, setMenuState] = useState(true);
|
18 |
const [isLoading, setIsLoading] = useState(false);
|
19 |
+
const [questions, setQuestions] = useState(null);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
const handleSubmit = async (e) => {
|
22 |
e.preventDefault();
|