I want to click a button to show a popup without using state and without using hooks. I am currently using 'antd' as my graphics library but any solution that works can be adapted for my needs.
The button comes from a return of a function:
public getButton()
{
return <Button onClick={()=>???} >Yes</Button>
}
The onClick should generate a Modal (ideally).
Thanks.