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

React class to functional component #706

Merged
merged 5 commits into from
Nov 14, 2024

Conversation

pi1814
Copy link
Contributor

@pi1814 pi1814 commented Nov 12, 2024

Changes made:

Converted Class Components:

  • Replaced class-based components with functional components

  • Each component now utilizes hooks such as useState, useEffect, and useRef where applicable.

Updated Lifecycle Methods:

  • Converted lifecycle methods (e.g., componentDidMount, componentDidUpdate, and componentWillUnmount) to their functional equivalents using useEffect.

Removed Unused Code:

  • Cleaned up any unused imports that were no longer necessary after the conversion

Does your change fix a particular issue?

Fixes #107

@pi1814 pi1814 requested a review from a team November 12, 2024 06:30
@deepakprabhakara
Copy link
Contributor

@pi1814 Reset filters is not working, not sure if that was always an issue or is new here.

@deepakprabhakara deepakprabhakara requested a review from a team November 13, 2024 14:12
@deepakprabhakara deepakprabhakara merged commit 85a2776 into main Nov 14, 2024
4 checks passed
@deepakprabhakara deepakprabhakara deleted the react_class_to_functional_component branch November 14, 2024 10:40
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.

Rewrite React code to latest version
3 participants