cara menambahkan lebih banyak elemen setelah klik di reaksi

const App = () => {
  const [count, setCount] = useState(0);

  return <Fragment>
    <button onClick={() => setCount(count + 1)}>Click me</button>
    { [...Array(count)].map((_, i) => <AddedElement key={i} />) }
  </Fragment>
}
Victorious Vendace