From 2f61d45945206dba7cdae27530d16544964cd968 Mon Sep 17 00:00:00 2001 From: Ferry Suhandri Date: Thu, 20 Jun 2024 21:36:55 +0700 Subject: [PATCH] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 40d4abc..4ebbe77 100644 --- a/README.md +++ b/README.md @@ -200,9 +200,7 @@ import { useEffect, useState } from "react"; const TopTrending = () => { const [trendingReports, setTrendingReports] = useState([]); useEffect(() => { - getTopTrendingReports().then((reports) => { - setTrendingReports(reports); - }); + getTopTrendingReports().then(setTrendingReports); }, []); return (