Add typing for search result state hook value
This commit is contained in:
parent
d825f8842a
commit
e47510f912
|
@ -7,7 +7,7 @@ import './App.css'
|
|||
|
||||
function App() {
|
||||
const [searchString, setSearchString] = useState("");
|
||||
const [searchResults, setSearchResults] = useState([]);
|
||||
const [searchResults, setSearchResults] = useState<{}[]>([]);
|
||||
const [itemChoiceByUser, setItemChoiceByUser] = useState({});
|
||||
const [count, setCount] = useState(0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue