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

Popular posts from this blog

Receive udp packets in android gstreamer -

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -