import { useState } from "react" import axios from 'axios'; import { Button } from "@mui/material"; const Quiz = () => { const [clicked, setClicked] = useState(false) const [quiz,setQuiz] = useState(null) const handleQuiz = async() => { setClicked(true) try{ const newQuiz = await axios(`${import.meta.env.VITE_REACT_APP_SERVER}/api/openai/`) console.log("newQuiz.data :",newQuiz.data) setQuiz(newQuiz.data) } catch { alert("Could not make quiz. Try again") } finally { setClicked(false) } } return ( <>
Test Your Knowledge?
Deep impact is a web-app designed to give users insight into potential danger of asteroid impact. Using the NASA NeoWs API we have created a simulation tool to visualize incoming asteroids and various methods of asteroid deflection.
Our Team
{/*The Sky Is Falling!
To see learn more about Deep Impact, checkout our GitHub.