Implement State management

This commit is contained in:
pavel Hamawand 2024-03-18 16:54:16 +01:00
parent 4173003d32
commit 90afe80408

View file

@ -5,6 +5,8 @@ import { Project } from "../Types/goTypes"; // Importing the Project type
const UserProjectListAdmin: React.FC = () => { const UserProjectListAdmin: React.FC = () => {
// Define the functional component UserProjectListAdmin // Define the functional component UserProjectListAdmin
const [projects, setProjects] = useState<Project[]>([]); // State management for projects
return ( return (
<div> <div>
<h2>User Projects</h2> <h2>User Projects</h2>