Conditions | 1 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import React, { FunctionComponent, useState, MouseEvent, FormEvent, ChangeEvent } from "react" |
||
19 | |||
20 | async function searchData(e: ChangeEvent<HTMLInputElement>) { |
||
21 | console.log(e.target) |
||
22 | console.log( |
||
23 | `https://deploy-preview-384--kcvvelewijt.netlify.app/.netlify/functions/searchIndex?search=${e.target.value}&limit=25` |
||
24 | ) |
||
25 | const result = await fetch( |
||
26 | `https://deploy-preview-384--kcvvelewijt.netlify.app/.netlify/functions/searchIndex?search=${e.target.value}&limit=25` |
||
27 | ).then((x) => x.json()) |
||
28 | console.log(result) |
||
29 | } |
||
33 |