So fügen Sie nach dem Klicken in React mehr Elemente an

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