Well, today I want to talk about how I got into using Presto with React. It was a bit of a journey, so grab your coffee, and let’s dive in!

It all started when I was trying to build a single-page application. I heard about this thing called React, made by Facebook. People were saying it was pretty awesome for making user interfaces. So, I thought, “Why not give it a shot?”
First, I went through some basic tutorials. They were easy enough. I followed a cheat sheet to get a grasp of the basics and what is it like. It got me up to speed with what React is and why everyone is so hyped about it.
Then I decided to get my hands dirty. I used this “Create React App” thing. It’s like a starter kit. It was helpful, especially since I was still getting the hang of React. It made setting up a new project a breeze.
Next up, I had to figure out how to connect my React app to a database. That’s where Presto came into the picture. I needed a way to query data, and Presto seemed like a solid choice. I read up on how to use Presto with a React frontend. There were some examples out there, which helped a lot.
I installed the necessary packages and configured my React app to talk to my Presto server. It was a bit tricky at first. I had to make sure the queries were right and that I was handling the data correctly in my React components.

- First, I set up the Presto client in my React app.
- Then, I wrote some functions to send queries to Presto and get the data back.
- After that, I displayed the data in my app’s UI. It felt great to see it all working together.
I spent a good chunk of time testing and tweaking things. It wasn’t always smooth sailing, but I learned a lot along the way. I found that breaking down the problem into smaller pieces really helped. I could tackle each part one by one, and before I knew it, I had a working prototype.
The Final Stretch
Finally, I had a pretty decent app running. It wasn’t perfect, but it was a solid start. I could query data from Presto and display it nicely in my React app. There’s still a lot to improve, but hey, that’s the fun of coding, right? Always something new to learn and improve. And I’m sharing this because I think it’s cool to see how things come together, even if it takes a bit of effort. So that’s my Presto React journey. Hope you find it helpful!