React Query makes it incredibly easy to query and cache server-side data, and in this tutorial, we will be learning how to leverage this.
For simplicity's sake, we will be building a fake API, which will allow us to fetch, add and remove todos from a list. The nice thing about what I am showing you is that the code we write can easily be translated into fetching data from a real API.
The decision for me not using a real API is based on the fact that a real API can introduce additional variables outside the scope of this…
Apollo is an extensive development platform that can be used for front-end and back-end development.
Today we will be focusing on Apollo’s implementation for React, known as Apollo-Client. Apollo-Client is a data fetching and caching tool that uses GraphQL to collect and manage its data, but they recently introduced a new feature called Reactive Variables, which doesn’t rely on GraphQL at all. We will be using Reactive Variables and a library called Immer (more on this later) to implement a local state-managed to-do list.
Below is a link to Apollo-Clients documentation of Reactive Variables for those of you who would…
We will be leveraging the power of a library called React Hook Form in this tutorial, which will make handling our form logic in React a breeze. Forms are an almost essential part of any website, and hopefully, by the end of this, everyone will feel comfortable making their own forms in React.
We will not need too much for this tutorial. Below is a list of prior knowledge and tools you will need.
Let’s talk about some exciting technologies that I think can change the way we write code as a web-developer.
One of the things that we as web developers have to be very good at that doesn’t get enough credit is the ability to learn new things. We work in a space where things can change so fast. That’s why in my opinion, it is important for us to constantly expand our horizons and learn new things. I’m gonna talk about 5 things that I plan on learning in 2021.
This article will be different from most of the articles that…
For those of you who don’t know, Auth0 is a tool that provides Authentication to developers as a service. It will essentially allow us to make a secure experience for our users without the hassle of trying to learn and understand everything about Authentication and Authorization.
We will not need much to be able to do this tutorial.
First things first, if you don’t have an account on Auth0, you will have to create one really quick. Don’t worry. It’s incredibly…
React is very open in how you can approach styling it. I am gonna hit on what I believe to be the most popular approaches to styling in React.
There are so many different ways to Style things in React, and although they are all very different, they are still quite similar. Similar in the way that CSS is what drives all of them. If you know CSS, you can use whichever one your heart desires to great effect.
This is the tried and true method that has been used what seems like the entire life of the internet. Many…
GraphQL Code Generator can change the way you write GraphQL code going forward. Let’s see how easy it can be to get up and running with it by setting up a TypeScript based GraphQL server in Apollo.
GraphQL Code Generator is honestly a game-changer for writing GraphQL based code (both server and client-side). In this article, we will be learning how to leverage GraphQL Code Generator from within Apollo. In this article, we will use it by generating the types for our resolvers, enabling us to write type-safe resolvers with minimal effort.
The first thing that we will need to…
Let’s learn how easy it can be to dynamically generate lists in React using the array map function.
Let’s look at some examples to get an…
Surge is an elegant tool used for deploying static websites. It makes it so simple to deploy that you probably won’t believe it. Today we will learn how we can deploy a fully functioning React app running just a few commands.
Here is a link to the Surge website for those who would like to learn more about it.
We can start by opening up the command line (terminal or command prompt depending on the operating system).
The first thing you will need to do is install Surge by running this command.
npm install surge --global
With surge installed, it…
Redux is a popular state-management library, especially with React, but one of the downsides/complaints about Redux is often how boiler-platey it can be. Enter Redux Toolkit. Redux Toolkit cuts down significantly on the amount of Redux code that we will have to write and greatly improves developer experience, as you are about to see. So without further ado, let’s dive into creating our To-Do list.
Before we do anything else, our first step will be to create our project. We will be…