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

Refactor more class components #123

Merged
merged 4 commits into from
Aug 27, 2020
Merged

Conversation

tjsilver
Copy link
Contributor

What does this change?

The Results and SidebarMatch components were React class components. In this PR they have been refactored into functional components. This allows us to use theuseContext hook and has the additional benefit of removing any deprecated lifecycle methods such as componentWillMount.

How to test

Run the branch locally and see that the sidebar controls and results work as expected.

@tjsilver tjsilver changed the title Ts/refactor class components Refactor more class components Aug 26, 2020
@tjsilver tjsilver requested review from jonathonherbert and a team August 26, 2020 16:12
Copy link
Contributor

@jonathonherbert jonathonherbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected 👍

@tjsilver tjsilver merged commit 9cfa0d2 into master Aug 27, 2020
@tjsilver tjsilver deleted the ts/refactor-class-components branch August 27, 2020 16:41
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.

None yet

2 participants