I'm a Senior Developer and Co-host of Friday Night Deploys Podcast. I'm also a dad that likes to play video games and lift, always failing to keep it real with the kidz.
Thanks for commenting, You're totally right Pasquale! Ideally you can store your style variables really anywhere you want to and import them into your components.
However I did want to just show off a simple example that can also show props affecting styles.
We can also use useMemo to avoid recreating the same style on every render but I figured it was just a little out of scope for what I wanted to show :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for commenting, You're totally right Pasquale! Ideally you can store your style variables really anywhere you want to and import them into your components.
However I did want to just show off a simple example that can also show props affecting styles.
We can also use
useMemo
to avoid recreating the same style on every render but I figured it was just a little out of scope for what I wanted to show :)