From 9e0d569eafe5e18476595fe02a53586e3da2fcc1 Mon Sep 17 00:00:00 2001 From: djmil Date: Mon, 31 Jul 2023 13:58:07 +0200 Subject: [PATCH] remove code duplication make a function returning a compoment --- src/App.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/App.js b/src/App.js index e9d3d57..5aeff81 100644 --- a/src/App.js +++ b/src/App.js @@ -1,22 +1,26 @@ import './App.css'; +function Square({ value }) { + return ; +} + function App() { return ( <>
- - - + + +
- - - + + +
- - - + + +
);