Open Yash121l opened 2 weeks ago
This is too complex of a file for me to feel comfortable with directly converting it to a functional component, and probably also larger than what you should attempt for a first PR. For this file in particular, I think we need to do some refactoring first to extract small components.
What this PR does
This pull request refactors the Timeline component from a class-based component to a functional component using React hooks. The key issues it addresses are:
These changes result in cleaner, more efficient, and easier-to-maintain code, while aligning with current React standards.
Open questions and concerns
This is my first time contributing to the Wiki Education Foundation. Refactoring has improved my understanding of code organization. If you find any errors or poor coding practices, please let me know and provide feedback.