Skip to content

React hooks in styled component interpolation functions #2300

Answered by Andarist
matt-tingen asked this question in Q&A
Discussion options

You must be logged in to vote

It's safe as long as you obey the rules of hooks. You need to call always the same hooks in your styled components (each render)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matt-tingen
Comment options

Answer selected by matt-tingen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants