Can't pass sizes to parent components
corysimmons opened this issue · comments
Cory Simmons commented
This would be really handy with things like styled-components. I peeked at the source and it looks like it's using useEffect under the hood, so I'm not sure why it isn't able to watch/update appropriately.
Viktor Hubert commented
You have a missing px
in your CSS calc, just change it to:
calc(300px + ${props.h}px)
Cory Simmons commented
hah, my bad. Thanks Viktor. :)