naomi
naomi copied to clipboard
Emmet (styles): In one file it works, in the other there is no
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
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
`;