javascript - Use prop as in range of NoUiSlider (React)? -
i trying create nouislider inside child component utilises props of child.
so:
<nouislider   range={{min: this.props.minprice, max: 200}}   margin={100}   start={[1200, 1800]}   connect={true}   tooltips   format={wnumb({     prefix: 'eur',     decimals: 0   })}   step={10} /> but error: nouislider: missing 'min' or 'max' in 'range'
i believe happening because nouislider trying initialise before prop available, instead of numeric value, null being put range?
how fix this?
 
 
Comments
Post a Comment