Alina-Khmilevska / UPSA-React

This repository contains the source code for the UPSA Pharmaceutical Organization's website, developed using the React library.
1 stars 0 forks source link

Refactor OurProjects Component for Improved Data Fetching and UI Rendering #16

Closed Alina-Khmilevska closed 10 months ago

Alina-Khmilevska commented 10 months ago

The OurProjects component is currently handling both the fetching of project data and the rendering of UI components. To enhance maintainability, code readability, and separation of concerns, a refactor is necessary. This refactor should focus on creating a more modular structure, where data fetching and UI rendering are more decoupled, and UI components are more reusable and easier to manage.

Goals:

  1. Data Fetching Enhancement:
  1. UI Component Refactoring:
  1. Improve Accessibility and Interactivity:
  1. Responsive Design:
  1. Styling Enhancements:

Technical Tasks:

Expected Outcome: Upon completion of this refactor, the OurProjects component will be more maintainable, with a clear separation between logic and presentation. The UI will be smoother and more engaging for users, with an improved loading experience and interactive elements.

Alina-Khmilevska commented 10 months ago

I'm pleased to report significant progress on the issue concerning the refactoring of the OurProjects component. Here’s a breakdown of what has been accomplished:

Data Fetching Enhancement:

We've created a custom hook that encapsulates the data-fetching logic. This has led to cleaner component code and has made it easier to manage state and side effects related to the API calls.

UI Component Refactoring:

Accessibility and Interactivity: