diff --git a/src/components/Search.jsx b/src/components/Search.jsx index 21fcbd9..ce95e24 100644 --- a/src/components/Search.jsx +++ b/src/components/Search.jsx @@ -12,16 +12,21 @@ export default function Search( { setQuery } ) { setQuery(inputText) }; +let submitHandler = (e) => { + e.preventDefault(); + setQuery(inputText) +} return (
{/*
*/} -
+