Ran into quite a few issues and limitations sadly.
The css interpolation function is still required if you want to execute logic statements or curried functions. Slightly more info in the official docs: styled-components.com/docs/api#css
Also the syntax highlighting breaks if you place the opening backtick that comes after (props) => on a new line. Unfortunately Prettier automatically places the entire inner interpolation function on its own line grrr 😝
Ran into quite a few issues and limitations sadly.
The
css
interpolation function is still required if you want to execute logic statements or curried functions. Slightly more info in the official docs: styled-components.com/docs/api#cssAlso the syntax highlighting breaks if you place the opening backtick that comes after
(props) =>
on a new line. UnfortunatelyPrettier
automatically places the entire inner interpolation function on its own line grrr 😝simple template literal (without
css
):Sadly, but yes highlighting is broken in many cases