In this tutorial, we will explore React form state management using React Final Form. React Final Form allows us to manage state without the need for the useEffect() hook.
High performance subscription-based form state management for React
React Final Form is a React wrapper for Final Form, which is that uses the
Observer pattern for state management.
The observer pattern is a software design pattern in which an object, named the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods.
Among others,
So you found the public GitHub account of your favorite JavaScript/React developer and want to run some of the examples in their repositories. Or a tutorial mentions “the complete solution can be found here.” Great. Now what?
Cloning is done through the command ‘git clone’ and it is a process of receiving all the code files to the local machine.
For the this tutorial we will use one of my GitHub accounts with a few repositories, but you can use any GitHub account you desire. …
Have you ever wondered where those npm packages you install come from Well, wonder no longer, they come from developers like you!
In this tutorial, we will create and publish to the NPM registry, an NPM package using the following steps.
Our focus will be on the process and not the…
PostgreSQL is an open source relational database that supports some amazing data types. In prior articles, we looked at performing CRUD-like operations on the jsonb data type as well as converting a jsonb array of objects in to a recordset for easy querying.
In this article, I’d like to focus on another data type, the Array data type. Why? Because Arrays are great for storing, at a minimum, lists. Lists of text, numbers and more.
Array Type
PostgreSQL gives the opportunity to define a column of a table as a variable length single or multidimensional array. …
Using the OFFSET and FETCH clauses in Microsoft’s SQL Server.
A common need when working with large amounts of data is how to fetch the data and display it in a reasonable amount of time.
The solution to this problem is pagination. Pagination can be done on the front-end, back-end, or both.
Note: This article is specific to Microsoft’s SQL Server. For MySQL or PostgreSQL, see this article.
Pagination, also known as paging, is the process of dividing a document into discrete pages, … Server-side pagination is appropriate for large data sets providing faster initial page load.
-Wikipedia
Using the LIMIT, OFFSET and FETCH NEXT operators.
A common need when working with large amounts of data is how to fetch the data and display it in a reasonable amount of time.
The solution to this problem is pagination. Pagination can be done on the front-end, back-end, or both.
Note: This technique works well in PostgreSQL and MySQL. For Microsoft SQL Server see this article.
Pagination, also known as paging, is the process of dividing a document into discrete pages, … Server-side pagination is appropriate for large data sets providing faster initial page load.
-Wikipedia
In this article we will explore two ways of tracking state using a simple registration form.
The user enters their name, email address and a password and we keep track of state in two different ways.
Both are valid ways but the second may be preferred for larger forms.
You can use an existing React project (I often keep a “SandBox” application for experimenting) or bootstrap a…
Although React’s useEffect hook allows you to do many things, In this tutorial we will walk through how to use the useEffect hook specifically to fetch data from an API, and refresh that data periodically.
You can use whatever API you prefer but we will be using the fake API https://jsonplaceholder.typicode.com/ to fetch posts.
https://jsonplaceholder.typicode.com/posts
By using this Hook, you tell React that your component needs to do something after render. React will remember the function you passed (we’ll refer to it as our “effect”), and call it later after performing the DOM updates.
Something important to notice in the…
Can you make money on Fiverr?
The short answer to this is yes! I’m not saying you will make a living from Fiverr, maybe you can, but it can certainly be a decent additional income stream.
For me, if I took every request, I could earn between $500-$1,500 of additional income per month.
What I have found is it is best to have several “Gigs”. Why? Because they may not all be in demand at the same time. I have four Gigs.
Self-Employed Software Developer, Trainer, Consultant. Keeping up to date. I’ve noticed in over 28 years of programming, one’s current skills have a shelf life.