#Can't use template literal to set Affix component prop
4 messages · Page 1 of 1 (latest)
Missing px?
<Affix position={{ bottom: `${b}px`, right: `${r}px` }}>
You can pass the values without template literal if you want to use px
<Affix position={{ bottom: b, right: r }}>
this works for me:
<Affix position={{ bottom: +`${b}`, right: +`${r}` }}>