defaultProps error
When running my React app with a <Nouislider/>, I get the below error in console:
Warning: v: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
v^3.4.2",
Issue is caused by the defaultProps below: https://github.com/mmarkelov/react-nouislider/blob/master/src/index.js#L244
Would appreciate an update to avoid future problems regarding this.
Upvoting on this. +1
I'd like to second this.
I just upgraded from React 18.0 to React 18.2, and it calls console.error() on any use of defaultProps.
As a workaround I'm just manually filtering these from the console, but it's obviously less than ideal.
seems the author doesn't care about this library again (?)
Has anyone found a solution?