WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
385 stars 600 forks source link

Course creator #5852

Open abhay-dev2901 opened 1 week ago

abhay-dev2901 commented 1 week ago

NOTE: Please review the pull request process before opening your first PR: https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/CONTRIBUTING.md#pull-request-process

What this PR does

<This pull request migrates the CourseCreator component from a class-based component to a functional component using React hooks. The purpose of this change is to modernize the component, simplify state management, and improve code readability. This PR addresses the issue of outdated React patterns in the CourseCreator component.>

Screenshots

Before:

After:

Open questions and concerns

<I learned that the lifecycle methods in class components can be effectively replaced with useEffect hooks in functional components, improving code readability and maintainability. One concern is ensuring that all functionalities are preserved after the conversion. Thorough testing is necessary to verify that the component behaves as expected in all scenarios. Are there any performance implications to consider with the new implementation, especially related to the useEffect hooks and state management?>

ragesoss commented 1 day ago

This should only include changes to the file for the one component that is being refactored. Also please include before/after screenshots.