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

FIX: Typescript error for react 17 or above #1374

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

vanshavenger
Copy link
Contributor

@vanshavenger vanshavenger commented Oct 2, 2024

PR Fixes:

Screenshot 2024-10-02 at 8 20 02 PM

In react 17 or above the follwoing change can help to not use React import in each file other wise it shows a warning as you can see in the screenshot attached

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

@vanshavenger
Copy link
Contributor Author

Better solution is to have React imports in those files, After reaearching more

Should i add imports to all the files to resolve the typescript error.

@devsargam
Copy link
Collaborator

Thank you sir

@devsargam devsargam merged commit 4a88e5b into code100x:main Oct 3, 2024
1 check failed
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