How to use React in a Go web app

preview_player
Показать описание
In this video we learn how to add a React frontend to a Go app.

Рекомендации по теме
Комментарии
Автор

Hey Robby. I'm a junior SE (3 years) that mostly worked on desktop apps. I wanted to create a web app for a personal project and in order to learn a bit more about web dev. There are literally thousands of tutorials but as I looked into them (or their stack) I felt they were over engineered or way above my skillset. I found yours and created the bulk of the app (go + react) super fast. I'm glad since I like Go. I just want to really thank you for these as they are quick, clear, concise and deal with down to earth information. I know you asked in the other video about suggestions: how about testing? Would you set up a single point of entry for all your testing in the go app, or maybe use esbuild script to test independently the go side and then the react side? Thanks!

davidb
Автор

That's cool, thanks Robby! 🤓
I love both react and Go. Im trying to establish a pattern for my relatively small web apps. Where I'm at currently is a go docker image as my API in gcp (reusable for multiple ui's/routes) and react (nextjs13) on vercel. However, this offers an interesting alternative that seems to have some benefits... Gonna play with this.

DaveFredkove
Автор

Simple and amazing! I've just subscribed!

felipecouto
Автор

Thank you Robby for the great content! Would you be able to do a video on using Go Fiber with Svelte JS?

RafiDude
Автор

How would one pass data from golang trough esbuild to react so that you effectively have ssr?

MrDevianceh
Автор

How do you pass server variables to the client component?

yanfoo
Автор

On building a shopify theme, the part around 5:50, where you use the configure command, when I try to use the configure command it says command not found

takeyuout
Автор

super helpful, however your speed sometimes overwhelms me😅

RedditFam
Автор

Thanks for the video!! One question tho... setting "watch: true" doesn't seem to work and throws the error: "invalid option in build() call watch esbuild, " Any help would be appreciated!

remingtonsmith
Автор

Thank you for your kind instruction. I pretty much got it! I would like to ask you just one question. I’m sorry but I don't understand how Application.js(public/assets) created at 8:18. I'd be delighted if you could return my comment when you find the time.

vuenfus
Автор

I checked out the repos and ran nom run dev and i got, This site can’t be reached localhost refused to connect. and the warming in the console was 'crbug/1173575, non-JS module files deprecated.'

chrishabgood