From 41ab9585feeedf04f2a87e3c0662d0496463f417 Mon Sep 17 00:00:00 2001 From: Adeen Shukla Date: Wed, 28 Oct 2020 20:42:40 +0530 Subject: [PATCH] Add a key to the Result element in the Data list --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 587a12a..257afc1 100644 --- a/src/index.js +++ b/src/index.js @@ -57,7 +57,7 @@ export const SearchBar = ({ placeholder, Data }) => { {Data.map((data, index) => ( // eslint-disable-next-line react/jsx-key - + {data.value} ))}