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 Update: 16 -> 18.3.1 #984

Open
wants to merge 4 commits into
base: dev-pr-testing
Choose a base branch
from
Open

Conversation

mbusch3
Copy link

@mbusch3 mbusch3 commented Jan 24, 2025

Based on the React 18 Upgrade Guide, I made some minor changes to the index.js and App.js files to render the React app itself. But the biggest change is that React now recommends defining components as functions instead of classes. This involved adding useState() state variables, converting lifecycle hooks to useEffect() functions, and destructuring props.

While I tried to maintain the vast majority of the functionality in every component, there are a few issues (like the reports not rendering properly). I figure that this isn't a real cause for concern, since most of these components will likely be rewritten in the next few months based on the new UX.

@mbusch3 mbusch3 linked an issue Jan 24, 2025 that may be closed by this pull request
…ocal and one general. I've renamed the local one "handleSingleIssueSave".
@mbusch3
Copy link
Author

mbusch3 commented Jan 31, 2025

The responsiveness issues are still there. Although things seem to save. I'm still working out that, and the most recent issue is "showExample" is not defined when I go to revisit a previously resolved issue.

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.

Upgrade the primary components to React 18.3.1
2 participants