How to Connect to SQL Azure / React App

I have a React app hosted on Cloudflare. I intended to use a Node backend, but I see that’s not supported. What is the recommended way to connect to Azure SQL? I’d also be interested in the answer for Cosmos, but I imagine it’s the same answer.

I’m having trouble adding links to the Functions and Cloudflare Tunnel . Cloudflare Tunnel may be the best way, but it’s three years old. Is it supported? What would you use?

I will be serving up content from Azure SQL to pages in React.