Skip to content

Implement React 19 TypeScript example #1279

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

Merged
merged 2 commits into from
Aug 4, 2025
Merged

Conversation

matux
Copy link
Contributor

@matux matux commented Aug 4, 2025

Description of the change

This PR implements React 19 TypeScript example with error handling functionality matching the React JS example adding ErrorBoundary and TestError components with proper TypeScript types.

Related issues

SDK-518/make-sure-all-sdk-examples-work-properly

@matux matux self-assigned this Aug 4, 2025
@matux matux changed the title Fix TypeScript imports and implement React 19 TypeScript example Implement React 19 TypeScript example Aug 4, 2025
</a>
</header>
</div>
<React.Fragment>
Copy link
Contributor

Choose a reason for hiding this comment

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

React now has a short syntax for React.Fragment. 🎉

https://legacy.reactjs.org/docs/fragments.html#short-syntax

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ohh, I got it. I'll change them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I don't know if they had that yet in 2019.

Copy link
Contributor

Choose a reason for hiding this comment

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

The long form is still perfectly valid.

@matux matux merged commit 2a8d5bd into master Aug 4, 2025
4 checks passed
@matux matux deleted the matux/complete-react-ts-example branch August 4, 2025 20:39
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.

2 participants