Here is my code:
<ButtonOrder
style={{ background: values.sideNB ? NBColor : NSColor }}
type="button"
disabled={isPlacingOrder}
onClick={handleSubmit}
>
{isPlacingOrder ? "Đang đặt lệnh" : "Đặt lệnh"}
</ButtonOrder>;
How to change to add spinner instead of text when you click on any button with type "button"