-
Notifications
You must be signed in to change notification settings - Fork 231
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
Typescript issue #290
Comments
The problem is in the DefinitelyTyped package, not this repo. If possible, you can try and declare a generic for import { ReactSliderProps } from 'react-slider';
const props: ReactSliderProps<number[]> = {
defaultValue: [0, 100],
}
<ReactSlider defaultValue={props.defaultValue} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: