Skip to content
Discussion options

You must be logged in to vote

depends !

if that value is dynamically retrieved but still deterministic, meaning this will NOT change at runtime, then you could use config.staticCss with all the known values of width that you can prefetch and import in the config to pregenerate those classNames


if that value will change at runtime, then not everything has to be static css, so you can just use the style attribute on your component <div style={{ width: props.width }} />

Replies: 1 comment

Comment options

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