Command Shift

Adding Search Data - Walkthrough

After updating your handleSubmit method, it should look like this:

 const handleSubmit = async (event) => {
    event.preventDefault();
    setSearchResults(await getImages(value));
  };

On this page

No Headings