stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.

Home Page:https://stitches.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Styles doesn't apply for targeting a react component

ipf-hj opened this issue · comments

commented

Bug report

Describe the bug

Hi I'm developing on a dev server.
There's a component like this and the styles won't apply unless you save again on VSCode.
`
{name}

const A = styled('h3', {
// ...

marginRight: '0.8rem',
},

})
`

Screenshots

Before save
image

After save
image

commented

@hadihallak
Here is the link
https://codesandbox.io/s/aged-water-8t7r7u?file=/src/App.js

I'd like to get the 'Tag' component and give margin around it

It only shows the margin when I changed the style and save it On VSCode but not at the first render.