debug like
This commit is contained in:
1 parent
a578a7d22c
commit
37ec87bf9f
3 files changed
+86
-95
No files matched your search
@@ -1,19 +1,9 @@
|
||||
import { useState } from "react";
|
||||
function Carte(props) {
|
||||
return (
|
||||
<div className="carte">
|
||||
<h2>{props.titre}</h2>
|
||||
<p>{props.niveaux}</p>
|
||||
<p>{props.createur}</p>
|
||||
<h2>{props.nom}</h2>
|
||||
<button
|
||||
onClick={() => {
|
||||
setLikes(likes + 1);
|
||||
props.onLike();
|
||||
}
|
||||
>
|
||||
❤️ {likes}
|
||||
</button>
|
||||
<button onClick={props.onLike}>❤️ {props.likes}</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user