Disable Button on Click

PHOTO EMBED

Thu Jul 01 2021 10:40:31 GMT+0000 (UTC)

Saved by @Sensei_p

import React from "react";
function App() {
  const [disable, setDisable] = React.useState(false);

  return (
    <button disabled={disable} onClick={() => setDisable(true)}>
      Click me!
    </button>
  );
}
content_copyCOPY