This is my code
import { css, jsx } from '@emotion/core'
return (
<>
<img css={css`height: 200px; height: 200px;`} fluid={image.sharp.fluid} />
<List>
<li>Our Clients</li>
<li>What We Do</li>
<li>Contact</li>
</List>
</>
)
This is the error I'm getting
You have tried to stringify object returned from
css
function. It isn't supposed to be used directly (e.g. as value of theclassName
prop), but rather handed to emotion so it can handle it (e.g. as value ofcss
prop).
This error seems to be telling me that I need to do what I am already doing? Or am I missing something here.