How to retain type information in styled components?
I'm going through the motions of upgrading router to latest version and I ended up running into type errors with
@emotion/styled
.
If I have a route with a token, a styled link will result in incompatible params
.
I can work around it with LinkProps
:
Is there a more concise/better way to achieve this?1 Reply
fair-rose•7mo ago