Skip to content
UdemyWeb DevelopmentPaid courseIntermediate levelCertificate

Working with React and Go (Golang) (Udemy.com)

Learn how to build a single page application in React, with data supplied by a Go back end REST API

Created by: Trevor Sawler

Last updated June 2024

icon
What you will learn

  • Build amazing single page applications with React JS
  • Build reusable, composable components in React
  • Build a REST API in Go that handles JSON requests, and serves JSON responses
  • Build an API in Go that handles GraphQL requests

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 92 / 100

icon
Course Description

React and Go are something of a match made in heaven. React is the world's most popular JavaScript library for building Single Page Applications, and Go is uniquely well-suited for building REST back ends. That is what this course is all about.

This course has been completely re-done, for React version 18 and React Router version 6. The old version of this course is still available at the end of the new one, with each section marked as "Legacy." I'll remove it in a month or so, just to give people who have already started a chance to finish that version, if they so desire.

Learn how to develop and deploy a fast, secure web application built using the most popular and in-demand JavaScript front end (React), with one of the most popular and powerful programming languages for the back end (Go).

React is an open-source, front end JavaScript library for building user interfaces or UI components. React is maintained by Facebook and a community of developers and companies. React can be used as a base in the development of single-page or mobile applications. React is the most popular front-end JavaScript library in the field of web development, and is used by many well-known organizations, including Netflix, Instagram, and the New York Times. With React, we build fast, interactive user interfaces.

Go is a modern, type safe, compiled, and extremely fast programming language. It it is ideally suited for building safe, scalable, incredibly fast REST APIs and web applications, and is also used by large corporations around the wold, including Netflix, Instagram, American Express, and the New York Times.

If you were paying attention, you might have noticed some overlap there -- the same large companies using React are also using Go. There is a reason for that, and we will be exploring that reason in this course.

In this course we will go over the core fundamentals of React, including the React life cycle, components, functional components, props, state, and more. We will also cover calling a remote API (both one we build, and a 3rd party API), and much more.

In the first part of the course, we'll build a simple application using both React class component and Functional Components with hooks. Although hooks and functions appear to the the future for React, there are literally millions of lines of code out there built using classes, so it's important to know how to work with React using both classes and functions & hooks.

In the second project for this course, we'll build a Single Page Web Application (SPA) with a React front end and a Go back end API, where we will  cover receiving requests on the back end, both as JSON and as GraphQL, and returning that response as JSON.

In order to secure access to authenticated users for certain parts  of our site, we will also explore how to generate and use JSON Web Tokens (JWT), including refresh tokens.

This course is not intended for absolute beginners. I expect that you have some experience in JavaScript and Go, and a good knowledge of HTML.

Please note that this course requires you to download Docker Desktop from Docker. If you are a Udemy Business user, please check with your employer before downloading software.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Trevor Sawler

I have twenty years of experience in professional software development, and twenty years of experience as a University professor.

As an entrepreneur, I have worked with a broad range of clients, including Thomson Nelson, Hewlett Packard, the Royal Bank of Canada, Keybank, Sprint, and many, many others. I also have extensive management and project management experience. I have led teams of fifty developers and artists on multi-million dollar projects, and much smaller teams on much smaller projects.

As a professor, I have taught in a wide variety of course areas, including Computer Science, English, Irish, and American literature, and a number of "crossover" courses that bridge the liberal arts and technological fields.

I have won regional, national, and international awards for my work in the IT field, and have also won awards for my teaching and research as a University professor.

icon
More courses by Trevor Sawler

$84.99

$89.99

$79.99

$84.99

$84.99

$64.99

icon
More Web Development courses

$19.99

$19.99

$19.99

$89.99

$79.99

$69.99

icon
Reviews

4.6

1,540 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Brett Roscoe on 7/10/2026

I've really enjoyed working through this course. It lets students practice setting up a basic Go API with JWT authentication and it demonstrates how to connect that API to a React frontend. I was especially excited about the section demonstrating how to set up a GraphQL endpoint, as well as the deployment section at the end. It demonstrates how to deploy the backend and frontend on a VPS using Supervisor and Caddy. The React code uses Javascript instead of Typescript, and sometimes the JS seems a bit strange or doesn't seem to follow best practices for React state management. And since the course is a bit dated, the instructor uses Create-React-App (deprecated now) instead of Vite. But if you are learning Go web development, this course is definitely worth your while.

By Marc Vooijs on 10/28/2024

I started this course because I recently started using Go for the backend in web applications. I started with Go templates and after following a number of Trevor's courses I saw this one. I don't know React and I found it useful to take this course as well, to see how React and Go work together. I learned a lot from React and Go. In addition, the way Trevor gives the explanation is really fantastic. I not only learned a lot from Go and React, but also from using the tools around it. The deployment chapter answered all the questions I had that arose during the course about how to properly implement this in production. Really more than worth taking this course.

By Dave Taylor on 5/28/2024

This is a great course to learn about React and how to integrate it with a custom Go back-end API. I learned a lot about building a full stack web application. There are sections on setting up a custom Postgres datastore, as well as how to secure communication using JWTs and finally a short section to implement some GraphQL logic. Would recommend this course to anyone who wants to know about these things as Trevor is an excellent teacher!

By Anonymized User on 5/15/2024

The course is awesome. It does NOT include the basics of javascript and go, but if you can at least follow the code, you will be teach how to create a real life project, how to structure your code inside a file and in folders, how to manage a database, authentication with JWT, basics of GraphQL and even how to deploy to production. It is a great way to wrap up your training in GO and React.

By Russ F on 12/1/2023

Excellent course, I came back to a Trevor/Go course after doing one of Trevor's courses about a year ago with Go, looking for a Go refresher so I do have some Go/React background. Very good instruction, and as of Dec 1, 2023 everything in the course works, with quick responses to help questions from Trevor(instructor). Watched, but did not actually do the last deployment part until I figure out where I want to deploy. Five stars!

By Chris Armitage on 1/31/2023

This relates to the React 18 / Router 6 content. I started with no React knowledge, and junior (at best) Go skills. I now feel not only confident enough start developing my own applications from scratch, but to do so with an understanding of best practices and security weaknesses. Towards the end, the content can get a little repetitive, but I found this a bonus as I was able to pause the lesson, jump ahead with what I've learnt so far, and get a working feature myself, before finishing the lesson to see if I got it right.

By Amogu Godswill on 4/28/2022

Not really had to muddle my way through It would be nice if the tutor made a beginner course on golang using API, not all of us, use templates and it feels like a waste of time, to go through the long beginner course that focuses only on HTML and CSS where chances of actually writing HTML and CSS are quite low(i did get the course though).

By Sandy Marko Knauer on 1/9/2022

Very good and structured course. I use Next.js myself and only bought it to deal with the golang API. I think it's a shame that only Bootstrap is used. I would have liked to see another way e.g. Bulma or Tailwind, but unfortunately you can't have everything ;-) Can only recommend the course, I love the courses from Trevor Sawler. Although my English is very good, I understand it very well and can follow everything.

By Patrick Oliveros on 10/17/2021

This course is very basic in terms of content but I do appreciate the structure of this as this is a good stepping stone to create more complex apps. At the very least, I wanted to have a working example of a React frontend consuming a backend service. The backend service doesn't need to be go but as I transition from .NET to Go, the different approaches made in this course, as well as in his other courses (the hotel reservation), it gives me a good perspective on how apps can be structured logically, and how tests can be made from there as well.

By James Geer on 9/19/2021

I thoroughly reccommend this course to anyone who is interested in using React with Go. I found this course to be interesting and easy to follow along. I learnt a lot about APIs and how React interacts with a backend. I did find the Go section to be moderately difficult but I think that's just from me being new to the language. This is my second completed course with Trevor and I'm looking forward to the next!

Showing all 10 reviews on CourseDuck

Read all 1,540 reviews on Udemy