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

Update website to use function components everywhere #814

Merged
merged 1 commit into from Jul 25, 2023

Conversation

alangpierce
Copy link
Owner

There were a few large class components still in the website code, and this moves them to function components. This will be useful for dogfooding the hopefully-upcoming React Fast Refresh transform.

Also upgrade React to latest.

There were a few large class components still in the website code, and this
moves them to function components. This will be useful for dogfooding the
hopefully-upcoming React Fast Refresh transform.
@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #814 (7cb4ed4) into main (4caa80c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #814   +/-   ##
=======================================
  Coverage   88.70%   88.70%           
=======================================
  Files          56       56           
  Lines        6082     6082           
  Branches     1446     1446           
=======================================
  Hits         5395     5395           
  Misses        421      421           
  Partials      266      266           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link

Benchmark results

Before this PR: 372.2 thousand lines per second
After this PR: 373.7 thousand lines per second

Measured change: 0.42% faster (0.13% slower to 0.98% faster)
Summary: Likely no significant difference

@alangpierce alangpierce merged commit b9e563f into main Jul 25, 2023
8 checks passed
@alangpierce alangpierce deleted the use-function-components-for-website branch July 25, 2023 20:20
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

1 participant