We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When i use defaultValue={[0, 10000]} then getting error in typescript. How can i solve it?
defaultValue={[0, 10000]}
Image Link
The text was updated successfully, but these errors were encountered:
The problem is in the DefinitelyTyped package, not this repo. If possible, you can try and declare a generic for ReactSliderProps, e.g.
ReactSliderProps
import { ReactSliderProps } from 'react-slider'; const props: ReactSliderProps<number[]> = { defaultValue: [0, 100], } <ReactSlider defaultValue={props.defaultValue} />
Sorry, something went wrong.
No branches or pull requests
When i use
defaultValue={[0, 10000]}
then getting error in typescript. How can i solve it?Image Link
The text was updated successfully, but these errors were encountered: