Is there any way to use pagination widget in Algolia javascript api?

Hi, I try to set pagination in my react app.
I am using javascript api (npm algoliasearch) instead of instant search because I do not want incremental search.

Now I want to add pagination.
Is there any way to use pagination widget on javasript api or do I have to write it by myself?