import React, {useState} from 'react'; export const LoadingTeamsForm = (): JSX.Element => { const [user, setUser] = useState(0); fetch('/api/loadingLegisteredCommands', { method: 'POST'}) .then(res => res.json()) .then(json => setUser(json.user)) console.log(user) return ( <>
Название команды Учебное заведение ФИО участников Класс
Фиксики МАОУ СОШ 103 Иван, Петр, Дмитрий 1
); }; export default LoadingTeamsForm;