Closed hotrungnhan closed 1 year ago
Got a fix by renaming as
props in Typo component to some else word, for example :' tag'.In case just want to keep as
as props what should I do?
Looks similar to https://github.com/ben-rogerson/twin.macro/issues/762 - let me know if it's the same fix for you
Looks similar to #762 - let me know if it's the same fix for you
"ForwardAs" did work ,sincerely thank you.
I try to change the tag dynamically in the storybook it doesn't work. I also track the STypo in the Typo component, whenever I change the tag programmatically, it creates a new element and can't be tracked by useRef.