import logo from './logo.svg'; import './App.css'; import axios from "axios"; import { useState } from 'react'; import { useEffect } from 'react'; import { Table, TableHeader, TableBody, TableColumn, TableRow, TableCell } from "@nextui-org/table"; function App() { const [statements, setStatements] = useState([ "Empty statements" ]); // function to fetch all statements from BE useEffect(() => { axios .get("/data") .then((response) => { console.log("Got data ", response.data); setStatements(JSON.stringify(response.data)); }) .catch((error) => { console.log("There was an error retrieving the statement list: ", error); setStatements(JSON.stringify(error)); }); }, []); return (
Experiments