In the previous post, we’ve completed setting up the frame for our shopping cart website. We’ve added the routes, finished the product listing page, added filters – and we’ve even started an empty shell for the cart component. Note that if you want to simply download the code – head on to Github. If you’d […]
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.
Let’s build a Shopping Cart website with SolidJS and Bootstrap – Part 1
So it’s been a while since I’ve posted a tutorial. I have been stagnant for a while, just using the same technologies for work and personal projects. Although recently, one framework caught my eye – SolidJS. It claims to have “true” reactivity and addresses many of the things I don’t like about React (such as […]
Common JavaScript snippets for data manipulation
I find myself having to look up how to do things in JavaScript. After years of doing so, I’ve realized that its pretty much a common set of techniques that look for when manipulating data. So I’ve decided to create this list. Note that this is by far not a complete list – and is […]
Create a File Uploader with React and WordPress REST API (Media)
So I’m working on a small project and I ran into a task involving a form with a file input that has to update an image attached to a custom post type. It got pretty interesting because it took a bit of digging to get it to work. While there was not a lot of […]
Adding Google reCaptcha to our Next.js Comments Form
In my last post, we’ve added the comments area to our single post page. This included the comments list, along with the comments form. Remember we’re still working with the framework Next.js and WordPress REST API. But what good is a form if all we get is junk? What is stopping bots from spamming our […]
Easy Comments Area for the Single page – using Next.js
Now that we’ve got our basic single component (named [slug].js), which displays a single post, let’s look at how easy it is to add the comments area. First, let’s build 2 components: 1) CommentList.js and 2) CommentForm.js. In Next.js, when creating components that doesn’t use a route – we place them in the “components” directory. […]