Add support for react 18
See original GitHub issueWhen trying to upgrade to react 18, we are running into this Error:
error TS2786: 'GoogleLogin' cannot be used as a JSX component.
Its instance type 'GoogleLogin' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'import("/drone/src/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'.
error Command failed with exit code 2.
Issue Analytics
- State:
- Created a year ago
- Reactions:10
- Comments:10
Top Results From Across the Web
How to Upgrade to React 18
When you first install React 18, you will see a warning in the console: ReactDOM.render is no longer supported in React 18.
Read more >Add support for React 18 #17831 - storybookjs/storybook
Storybook will render your components with the new root API as soon as React 18 is installed. You can opt-out from this if...
Read more >React 18 Upgrade Guide and New Features - Refine Dev
React 18 was released! Are you looking to upgrade to React 18? Learn about the new features and changes in this comprehensive guide....
Read more >Upgrading to React 18 with TypeScript - LogRocket Blog
After a significant period of time in alpha and beta, React 18 shipped on March 29th 2022. Since the first alpha was released,...
Read more >How to Upgrade to React 18 - How-To Geek
ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can’t properly install
react-google-login
alongside React v18. I have tried using thelegacy-peer-deps
flag but it resulted in more issues down the line with my other modules. Adding support for React’s new version would be appreciated.While we wait for this, hopefully this helps.
@leecheuk/react-google-login
is a fork ofanthonyjgrove/react-google-login
and hasplugin_name
support & updatedpeerDependency
for React 18.