컴포넌트 안에서 스타일을 적었기 때문에 발생하는 에러
수정 전
import styled from 'styled-components'
function PostList() {
const PostListMenu = styled.div`
background-color: #EEEEEE;
display: flex;
align-items: center;
justify-content: center;
height: 70px;
font-size: 18px;
font-weight: bold;
border: 1px solid #C9C9C9;
`
return (
<PostListMenu> 배달 모집 목록 </PostListMenu>
)
}
수정 후
import styled from 'styled-components'
const PostListMenu = styled.div`
background-color: #EEEEEE;
display: flex;
align-items: center;
justify-content: center;
height: 70px;
font-size: 18px;
font-weight: bold;
border: 1px solid #C9C9C9;
`
function PostList() {
return (
<PostListMenu> 배달 모집 목록 </PostListMenu>
)
}