From 4353d95b5684e4c8bbeee64606779cf2ea24313d Mon Sep 17 00:00:00 2001 From: z0ccc Date: Tue, 24 Aug 2021 15:58:08 -0400 Subject: [PATCH] Removed useState and useEffect from software component --- frontend/src/components/SoftwareBlock.js | 29 ++++++++---------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/SoftwareBlock.js b/frontend/src/components/SoftwareBlock.js index 6a042b6..e933d58 100644 --- a/frontend/src/components/SoftwareBlock.js +++ b/frontend/src/components/SoftwareBlock.js @@ -1,25 +1,16 @@ -import { useState, useEffect } from 'react'; import ScanBlock from './ScanBlock'; import Table from './Table'; import { getSoftware } from './main'; -const HardwareBlock = () => { - const [data, setData] = useState([]); - - useEffect(() => { - setData(getSoftware()); - }, []); - - return ( - -

Software

- -

- Explanation: JavaScript can be used to find information about - your software. This information can be used to create a fingerprint. -

- - ); -}; +const HardwareBlock = () => ( + +

Software

+
+

+ Explanation: JavaScript can be used to find information about your + software. This information can be used to create a fingerprint. +

+ +); export default HardwareBlock;