How to call external API in Forge Custom UI

In UI Kit, I’m able to create External API call, but I’m unable to create in Custom UI.
how can we can make external API in Custom UI, in React side.

If anyone have example then its really appreciated.