function SearchMenu(props) {
const [SearchTerm, setSearchTerm] = useState("")
const searchHandler = (event) => {
setSearchTerm(event.currentTarget.value)
props.refreshFunction(event.currentTarget.value)
}
return (
<ul class="icon-container">
<li class="icon-item"><SearchOutlined style={{fontSize:'20px'}}/></li>
<li class="icon-item"><input class='searchBar' type='text' onChange={searchHandler} value={SearchTerm} style={{width:'80px', height:'20px'}}></input></li>
</ul>
)
}
위와 같이 코드를 작성하였는데 아래처럼 오류가 뜹니다..
어떻게 해결해야 될까요?