import React, {useState, useEffect} from 'react'; export const LoadingTeamsForm = (): JSX.Element => { const [user, setUser] = useState([]); useEffect(() => { fetch('/api/loadingLegisteredCommands', { method: 'POST'}) .then(res => res.json()) .then(json => setUser(json)) },[1]); console.log(parseInt(user[2].class)) return (
Название команды | ФИО тренера | Учебное заведение | ФИО участников | Возрастная группа |
---|---|---|---|---|
{rows.team_name} | {rows.name_team_coach} | {rows.training_institution_team} | {rows.name_first_participant +', ' + rows.name_second_participant + ', ' + rows.name_third_party} | {Math.min(rows.class)} |