anonnA
Reactiflux4y ago
12 replies
anonn

anonn – 16-33 Oct 14

How can I access the styles of an element before it is rendered?

I have implemented a custom progress slider. Is there any way for me to access the width of the wrapper div in
initialSliderWidth
without needing to manually write it? Using refs doesn't work because the component hasn't rendered yet.
Was this page helpful?