How to call rest Services in React

I want to do React Frontend << CUBA Services << api
It seems like a very simple concept. But I still can’t do it. I don’t know how it is necessary to import RestService to xxxx.tsx

Thanks for all the advice.

The cuba-petclinic demo has the sample of calling CUBA REST service from the React screen.

Live demo:

Screen code of the screen calling petclinic_VisitTestDataCreationService:

Client stub of the service: