I'm using Ionic version 6.10.1 to build an app. Precisely, I'm using ionic with react syntax.
In my app, I wanted to use a popover component. It works perfectly, the popover is shown and I can do something with it but I can only close it when I click outside and not from a button. Basically, I integrated two buttons in my popover. A cancel and okay buttons. I want to close my popover when I click okay or cancel but I couldn't do that.
The example in the docs have a close button already and it works when I click it. However, the source code is written in JavaScript and somehow it looks like alien language. I didn't understand literally nothing.
I noticed there are also other examples with ionic/angular but I have no idea about Angular. In fact I started learning React this week so I'm a beginner.
Basically, what I want is a minimal example in Ionic/React which shows how can this be done.