Skip to content

Clare Ivers

Menu

Clare Ivers

JavaScript

React JS: Setting State Based on Previous State

Update state based on previous state post featured image

React JS schedules state updates, it doesn’t run them immediately. Here’s how to make sure your state is current when you are updating state based on previous state.

clario January 3, 2023June 11, 2024 Coding, JavaScript No Comments Read more

Implementing Headless WordPress With React JS

Implementing Headless WordPress With React JS - Post Featured Image

How to use Wordpress’s REST API to implement a headless CMS on a React JS site, including adding the URL and Alt text of the featured image to the REST API’s response.

clario December 29, 2022January 2, 2023 Coding, JavaScript, PHP Read more

Get Data into a Google Sheet using a Web App

Get Data into Google Sheets with a Web App - featured Image - Photo by Markus Spiske on Unsplash

This post is the first in a series about getting data into a Google Sheet using a custom built WooCommerce webhook. Along the way, we’ll learn some smaller, really useful topics: The overall goal is to create a webhook that

clario August 4, 2022December 9, 2022 Coding, JavaScript No Comments Read more

Cloning Objects in JavaScript Part 2 – a deeper dive

Lego heads - deep cloning in Js. Photo by Hello I'm Nik on Unsplash

Normally when you create copies of objects in JS you end up with a shallow copy, where nested objects are copied by reference. Here’s how to make a deep clone.

clario May 31, 2022July 28, 2022 Coding, JavaScript, Tech No Comments Read more

What is this? JavaScript

The this keyword in JavaScript points to different objects depending on the context it is used in. How does it change? Let’s find out!

clario May 28, 2022November 3, 2022 JavaScript, Tech No Comments Read more

Factory Functions in JavaScript – making more than one object

White Bay Power Station, Rozelle, Sydney

It’s pretty easy to make an object in JavaScript once you know the syntax, but if you want to make more than one of the same type of object, it’s better to do it from some kind of blueprint. This post is all about factory functions!

clario May 24, 2022July 28, 2022 Coding, JavaScript, Tech No Comments Read more

Cloning Objects in JavaScript

Jam Cookies - Cloning objects in Javascript Featured Image - Photo by amirali mirhashemian on Unsplash

In Javascript, assigning an object to another variable won’t create a copy of that object. Here are 3 methods that will successfully clone a JS object.

clario May 6, 2022July 28, 2022 Coding, JavaScript, Tech No Comments Read more
Copyright © 2025 Clare Ivers . All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.