From 7b069c67fc269f0b6076146f1e66f5cd49dda883 Mon Sep 17 00:00:00 2001 From: Yalisonluz92 Date: Thu, 20 Feb 2025 21:04:59 -0300 Subject: [PATCH] =?UTF-8?q?modifica=C3=A7=C3=A3o=20simples?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/App.js b/src/App.js index 33ed2e0..30bd8ef 100644 --- a/src/App.js +++ b/src/App.js @@ -10,13 +10,6 @@ const App = () => { const [currentNumber, setCurrentNumber] = useState('0'); const [firstNumber, setFirstNumber] = useState('0'); const [operation, setOperation] = useState(''); - - const handleOnClear = () => { - setCurrentNumber('0') - setFirstNumber('0') - setOperation('') - }; - const handleAddNumber = (num) => { setCurrentNumber(prev => `${prev === '0' ? '' : prev}${num}`) }