import React from 'react'; import useSSE from './useSSE'; import LogComponent from './LogComponent'; // Import the DataDisplay component const Log = () => { const { data, error } = useSSE('http://localhost:8000/data_stream', 2000); console.log("Log Data: ", data); return (
{error &&

Error: {error}

} {data ? :

Loading data...

}
); }; export default Log;