This is my component :
import React, { useState } from "react";
const Product = () => {
const [count, setCount] = useState(0);
return (
<>
<span className="m-2 text-info">Laptop</span>
<span className="m-2 badge bg-primary">{format()}</span>
<button onClick={increase()} className="m-2 btn-sm btn-success"> </button>
<button onClick={decrease()} className="m-2 btn-sm btn-warning">-</button>
<button onClick={delet()} className="m-2 btn-sm btn-danger">Delete