-
Notifications
You must be signed in to change notification settings - Fork 331
scrollableTarget
throws error Type 'HTMLElement' is not assignable to type 'ReactNode'
in React 18
#378
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
Comments
This library seems to have been abandoned unfortunately. :( |
I upgraded from react 17 to react 18 and following issue started
|
its typescript issue only, which makes it even sadder that the library is abandoned, as this would be fixable very easily |
can you raise a pr?
…On Wed, 11 Dec 2024 at 6:14 PM, Pavol Šoltés ***@***.***> wrote:
its typescript issue only, which makes it even sadder that the library is
abandoned, as this would be fixable very easily
—
Reply to this email directly, view it on GitHub
<#378 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSYHF3JR6KPEJUDEWKQQN32FAXRPAVCNFSM6AAAAABTNMXII2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZVHA4TANZTGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: <ankeetmaini/react-infinite-scroll-component/issues/378/2535890735@
github.com>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://codesandbox.io/s/young-frost-ujmz14?file=/src/index.tsx
I recently upgraded my project to React 18,
then the following error started to occur :
With React 17, there was no problem at all.
I think
HTMLElement
has changed to no longer be part ofReactNode
.I knew it was possible to pass
id
value in form of a string toscrollableTarget
,but I couldn't because the node I was trying to pass it to didn't have
id
.What's the best way to handle this?
The text was updated successfully, but these errors were encountered: