Styled component (with props) breaks page? #67
-
I have this styled component: https://www.toptal.com/developers/hastebin/ijinigajec.yaml with props, but when I use it anywhere in my code it breaks the site; nothing renders anymore. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
It's likely that your stylesheet has panicked. You should either register panic hook that rust can print the panicking message, or switch to the macro-based version ( https://docs.rs/console_error_panic_hook/latest/console_error_panic_hook/index.html |
Beta Was this translation helpful? Give feedback.
-
Apparently, using js_sys::Math::random on Webpack too early errors out. Resolved by replacing the call to rand::thread_rng().gen() |
Beta Was this translation helpful? Give feedback.
Apparently, using js_sys::Math::random on Webpack too early errors out. Resolved by replacing the call to rand::thread_rng().gen()