Still working with Next.js and WordPress here – as described in my previous post. I’m at the single post now, and as it turned out – it’s really easy to build the basic functionality. So in Next.js – you simply add a component in the “Pages” directory to “route” the requests. For dynamic routes – […]
Category Archives: JavaScript
JavaScript is considered to be the “language” of the web. It is one of the most expressive object oriented and functional programming available to date. These posts contain topics about JavaScript.
Building a Headless CMS with Next.js and WordPress
Say what? Why would I want to use Next.js for the front end for a WordPress website? I’ve already covered a couple of ways to do a single site WordPress – using React or Vue that work just fine. Why “headless”? Why complicate things? Believe it or not, there are plenty of reasons to use […]
Let’s build a WordPress theme with React: Part 3 (The Loop)
Okay its been a while since I last posted. Let’s continue with Barebones React WP theme. The last time we left off, we introduced the concept of “The Loop“. But we really didn’t get into what its all about. Let’s describe what this piece is doing. In WordPress themes – there is the “The Loop“, […]
Let’s build a WordPress theme with React: Part 2 (Routes + Context)
Now that we have our react app setup, let’s form how our application will be structured. We’re going to need 3 main folders: 1) templates, 2) partials and 3) context. These are all going to be inside react-src/src folder. The templates folder is where we’re going to store the main files template files – namely […]
Let’s build a WordPress theme with React: Part 1 (Setup)
It’s been a while since I worked with WordPress, especially building themes. This time around, I wanted to bring in a bit more modern development experience into the process. I wanted to build a Single Page Application (SPA), with WordPress’ Rest API – but as a WordPress theme. The problem is, this can be a […]
React + Bootstrap – A Simple form validation tutorial
Form validation is a task that you can’t get away with when building forms. In React, I feel that forms is not its strongest selling point. Although validation is pretty straightforward. Keep in mind that this is a simple technique – where it does the validation on “Submit”, while the error messages are shown in-line […]