From 01a5c61e81f7663afea6e38f81235ebaef7b8d36 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Tue, 2 Jun 2020 19:31:34 +0200 Subject: [PATCH] refactor: use React.memo --- src/pages/Developers/Profile.tsx | 2 +- src/pages/Landing.tsx | 2 +- src/pages/NotFound.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Developers/Profile.tsx b/src/pages/Developers/Profile.tsx index bb82693..c3c34c8 100644 --- a/src/pages/Developers/Profile.tsx +++ b/src/pages/Developers/Profile.tsx @@ -41,4 +41,4 @@ const DevProfile: FC = ({ ); -export default DevProfile; +export default React.memo(DevProfile); diff --git a/src/pages/Landing.tsx b/src/pages/Landing.tsx index e02a2e4..b96503b 100644 --- a/src/pages/Landing.tsx +++ b/src/pages/Landing.tsx @@ -28,4 +28,4 @@ const Landing: FC = () => ( ); -export default Landing; +export default React.memo(Landing); diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx index c4383bb..9da1cd7 100644 --- a/src/pages/NotFound.tsx +++ b/src/pages/NotFound.tsx @@ -25,4 +25,4 @@ const NotFound: FC = () => ( ); -export default NotFound; +export default React.memo(NotFound);