function SaveButton({ busy }: { busy: boolean }) {
// an attribute value can be any expression
return (
<button disabled={busy} className={busy ? "is-busy" : "idle"}>
Save
</button>
);
}
export default SaveButton;compute an attribute value from state or props