rsmelo92 / portfolio-old

Access
https://rsmelo92.github.io/portfolio/
3 stars 0 forks source link

Convert all react class components to functional components #45

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR addresses issue #44 by converting all class components in the repository to functional components using React hooks. The class components Timeitem and Timeline have been refactored to remove the class declaration, constructor, and lifecycle methods, and replaced with the appropriate hooks.

Summary of Changes

These changes simplify the codebase, improve performance, and align with modern React best practices.

Fixes #44.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/convert-to-functional-components_1

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

rsmelo92 commented 1 year ago

close this PR

rsmelo92 commented 1 year ago

Poorly done by AI. They will not conquer the world so soon

kevinlu1248 commented 1 year ago

@rsmelo92 It's because this ticket is using GPT 3.5. GPT 4 PRs is a lot better.

rsmelo92 commented 1 year ago

@kevinlu1248 Thanks! I hope its better to fix the code only, not conquer the world 😛