Skip to content

Adding stylex.create inside Storybook render #514

Answered by nmn
tounsoo asked this question in Q&A
Discussion options

You must be logged in to vote

This is a constraint of how the compiler works. However, you should be able to write a Babel transform that hoists the stylex.create calls out at compile time. This should solve your problem.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tounsoo
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