Add support for react 19
react 19 is not supported
react 19 is not supported
Yes, I have got problems after migration to React 19 too.
There were errors during the build, and some troubles with ReactSlider component.
Its type 'typeof ReactSlider' is not a valid JSX element type.
Type 'typeof ReactSlider' is not assignable to type 'new (props: any) => Component<any, any, any>'.
Construct signature return types 'ReactSlider<any>' and 'Component<any, any, any>' are incompatible.
The types returned by 'render()' are incompatible between these types.
Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.
Please fix its :)
I guess it's related:
react-jsx-runtime.development.js?bb19:87 Warning: A props object containing a "key" prop is being spread into JSX ... /node_modules/react-slider/dist/es/dev/components/ReactSlider/ReactSlider.mjs:123:30
I get this on React v18.3, which is to make migration to v19 easier. It shows all the deprecated stuff, but still works
Basically it says, instead of:
const props = {
key: id,
className: "my-class",
}
return <Component {...props} />
Needs to be:
const props = {
className: "my-class",
}
return <Component key={id} {...props} />
I need also support for react 19
I am not sure this project is maintained anymore. Nothing happened for 2 years.
Any way around this or a suitable alternative?
Hi @nonybrighto, You’re currently using an alternative package to react-slider => specifically, rc-slider. This is a well-maintained and reliable package that serves as a suitable alternative. It provides similar functionality and is actively maintained, making it a good choice for most use cases.