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

Updated React default imports to the recommended namespace imports #225

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

EmilianoSanchez
Copy link
Contributor

@EmilianoSanchez EmilianoSanchez commented Dec 5, 2024

React SDK

What did you accomplish?

Updated React default imports to namespace imports as this is the recommended approach for improved compatibility:

  • Doesn't require esModuleInterop: true in TypeScript configurations.
  • Some build/bundle tools and configurations may handle ES namespace imports more predictably for tree-shaking.

How do we test the changes introduced in this PR?

Validated in projects with different configurations:

  • Default TypeScript config (esModuleInterop: false)
  • Using the latest React SDK version.
  • Using the minimum React SDK version required by the SDK.

Extra Notes

@EmilianoSanchez EmilianoSanchez requested a review from a team as a code owner December 5, 2024 18:27
Copy link

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.

1 participant