React to user follow with the Twitch API?

That would be if you are long polling the Follows Endpoint.

For EventSub you need to create a Server.
That server is secured behind SSL
Then when a Follower occurs Twitch will send a HTTP Post to you. to that server

You do not have to fetch anything As Twitch will notify you when a follower occurs.

EventSub is currently a Webhooks only platform.

So you tell Twitch what topics you want via Create EventSub Subscription which is the only/single HTTP POST you will make

Then when a follow occurs, Twitch will make a HTTP Post to your Server. So you don’t have to do any fetching at all.

Since you are using JavaScript here is a NodeJS Example of an EventSub Server for recieving notifications from Twitch

https://github.com/BarryCarlyon/twitch_misc/tree/main/eventsub/handlers/nodejs