Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Course creator #5852

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

abhay-dev2901
Copy link

@abhay-dev2901 abhay-dev2901 commented Jun 24, 2024

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:
https://github.com/WikiEducationFoundation/WikiEduDashboard/assets/149485820/f8f84f46-f5cf-4930-b992-d9d92fa61b7f

After:

WhatsApp.Video.2024-07-05.at.7.52.16.PM.mp4

##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
Copy link
Member

ragesoss commented Jul 1, 2024

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

@abhay-dev2901
Copy link
Author

Hello @ragesoss Plz review this PR

@abhay-dev2901
Copy link
Author

@ragesoss please review this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants