How to setup tracker proxy for ReactJs Single Page Web Application

I found a topic for the tracker proxy
GitHub - matomo-org/tracker-proxy: HTTP proxy for Matomo's tracker API. This script allows to track websites with Matomo without revealing to your visitors the secret Matomo server URL., which can be used for the PHP web sites.

Can you please suggest, how can I integrate the same with my ReactJs application which is using Flux pattern with React Redux.