🎓 Mattis44 💻
const Mattis = async (props) => {
const [name, setName] = useState("Mattis")
const ageRef = useRef(null)
const student = props.student ? props.student || true : false
const [location, setLocation] = useState('')
const discord = "mattis."
useEffect(() => {
const getLoc = () => {
axios.get('/api/location')
.then((res) => setLocation(res.data || "Nantes"))
}
getLoc()
}, [])
return (
<input type=text ref={ageRef} value='20'/>
)
}