Skip to content

Commit

Permalink
feat: memoize Home comp
Browse files Browse the repository at this point in the history
and reorder imports
  • Loading branch information
AviVahl committed Dec 30, 2024
1 parent 2b1008e commit 70db432
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/home.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { memo } from "react";

import { ChartBarIcon, ChatBubbleLeftRightIcon, Cog6ToothIcon, FolderIcon } from "@heroicons/react/24/outline";
import { version as reactVersion } from "react/package.json";
import { version as electronVersion } from "electron/package.json";
import { version as typescriptVersion } from "typescript/package.json";
import { version as reactVersion } from "react/package.json";
import { version as tailwindVersion } from "tailwindcss/package.json";
import { memo } from "react";
import { version as typescriptVersion } from "typescript/package.json";

export const Home: React.FC = () => {
export const Home: React.FC = memo(function Home() {
return (
<div>
<div className="pb-10">
Expand Down Expand Up @@ -66,7 +67,7 @@ export const Home: React.FC = () => {
</div>
</div>
);
};
});

const TechCard: React.FC<{
title: string;
Expand Down

0 comments on commit 70db432

Please sign in to comment.