react-scrollbars-custom: Incompatible with React 18 in strict mode

What is the current behavior?

Fails to render in strict mode React 18.

Element was not created. Possibly you haven't provided HTMLDivElement to renderer's `elementRef` function.

Steps to reproduce

https://codesandbox.io/s/confident-robinson-tgd5pb

What is the expected behavior?

To properly render scrollbars.

A little about versions:

  • OS: all
  • Browser (vendor and version): all
  • React: 18
  • react-scrollbars-custom: 4.1.1
  • Did this worked in the previous package version? no

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 44
  • Comments: 16

Most upvoted comments

Same for me

More than a year for this issue without this being addressed while 18 is still the latest official version. I guess the project is pretty much dead.