As I worked on my first full stack web app project using express and react, I was quickly prompted with an issue.

How do I get React to “talk” or “connect” to the Express server?😓

This article will explain how I got React to talk to my Express server by an example.

First let me explain what we will be using:

Frontend

Backend

Dependencies (not installed from create-react-app)

— Frontend —

This project will assume you have used the create-react-app by:

npx create-react-app client
cd client
npm i react-router-dom

We will be cleaning up a…

Jontkoh

Life Long learner Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store