From 24cbe1fc17265e70279120cfb1298cb9a5b53e38 Mon Sep 17 00:00:00 2001
From: Viarezo <viarezo@viarezo.fr>
Date: Sat, 9 Oct 2021 15:20:14 +0200
Subject: [PATCH] no

---
 src/App.js     | 2 +-
 src/Counter.js | 6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/App.js b/src/App.js
index fddfc30..e06c530 100644
--- a/src/App.js
+++ b/src/App.js
@@ -9,7 +9,7 @@ const App = () => {
             <h1>Bienvenue sur notre super site !</h1>
           </div>
       </div>
-      <Counter />
+      <Counter title="Un compteur : insane"/>
     </div>
   );
 }
diff --git a/src/Counter.js b/src/Counter.js
index 30052ce..e02551a 100644
--- a/src/Counter.js
+++ b/src/Counter.js
@@ -1,7 +1,4 @@
-import { useState } from "react";
-
 const Counter = (props) => {
-    const [count, setCount] = useState(0);
     return (
         <div class="card" style={{width:"auto", margin: '2em'}}>
             <div class="card-header">
@@ -10,12 +7,11 @@ const Counter = (props) => {
             <button
                 type="button"
                 class="btn btn-primary"
-                onClick={()=>setCount(count+1)}
                 style={{margin: "1em"}}
             >
                 Ce bouton incrémente
             </button>
-            <p style={{margin: "1em auto"}}>Là genre ça vaut {count}</p>
+            <p style={{margin: "1em auto"}}>Imagine ce truc pourrait compter les clics ?</p>
         </div>
     )
 };
-- 
GitLab