I've started watching a React Tutorial.
And I do have problem, vscode doesn't format styled consts. Also if I want to write fs14 or fs It doesn't recommand me anything.
const Container = styled.div`
width: 100%;
height: 100vh;
display: flex;
position: relative;
background-color: coral;
`
const Arrow = styled.div`
width: 50px;
height: 50px;
background-color: #fff7f7;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
bottom: 0;
left: ${(props) => props.direction === "left" && "10px"};
right: ${(props) => props.direction === "right" && "10px"};
margin: auto;
`
After I format the file, the Container remains the same. Also If I want to write fs/fs14 for example it doesn't recommand my font-size => font-size: 14;
Help please? :D
Via Active questions tagged javascript - Stack Overflow https://ift.tt/O4DiATg
Comments
Post a Comment