naomi icon indicating copy to clipboard operation
naomi copied to clipboard

Emmet (styles): In one file it works, in the other there is no

Open nicothin opened this issue 5 years ago • 1 comments

Syntax: javascript (naomi) If I remove the export function in the second file, Emmet starts working in it.

gif: https://raw.githubusercontent.com/nicothin/nicothin.github.io/master/img/emmet-problem.gif

nicothin avatar Mar 15 '19 11:03 nicothin

Add

If i add one line (const with some function) before styles, Emmet start working. WTF? ))

// If the next line exists, emmet in styles begins to work.
const emmet = () => <Emmet {...props} />; // This component does not exist.

const Container = styled.div`
  margin: 0;
  padding: 0; // This expanded from 'p0' by pressing the TAB button
`;

nicothin avatar Mar 15 '19 11:03 nicothin