Skip to content
Snippets Groups Projects
Commit ff7fb5ee authored by Viarezo's avatar Viarezo
Browse files

git gud

parent 24cbe1fc
Branches step3
No related tags found
No related merge requests found
......@@ -2,6 +2,10 @@ import './App.css';
import { Counter } from './Counter';
const App = () => {
const compteurs = []
for (let pas = 0; pas < 5; pas++) {
compteurs.push(<Counter title={"Le compteur n° "+String(pas)}/>)
}
return (
<div>
<div className="App">
......@@ -9,7 +13,7 @@ const App = () => {
<h1>Bienvenue sur notre super site !</h1>
</div>
</div>
<Counter title="Un compteur : insane"/>
{compteurs}
</div>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment