#Enable Disabled Button
2 messages · Page 1 of 1 (latest)
In fact, you need to use React.useState for this kind of stuff.
Also, i would suggest thinking in reverse like we use to in my company. Like naming cannotDelete instead of agreeToDelete because it's more readable disabled={cannotDelete} than disabled={[is not]agreeToDelete} but that depends more on your preference