Skip to content

Edmund Chan

All things WordPress and Web Development

Edmund Chan
  • Articles
  • Presentations
  • Contact

Web Development

Passing Children to React elements

October 25, 2020October 25, 2020

I was playing around with the raw React APIs, specifically React.createElement(), when I was going through the EpicReact workshop on React Fundamentals and I stumbled upon an interesting finding. React.createElement(component, props, …children) accepts an object … Read more

Categories React, Web Development Leave a comment

Setting up WordPress Coding Standards in VS Code

May 3, 2020May 3, 2020
WordPress Coding Standards

Adhering to a certain set of coding standards is important when it comes to writing good quality code. It makes your code easier to maintain and read not only for yourself but other developers as … Read more

Categories Web Development, WordPress 26 Comments

Error Boundaries in React

February 6, 2020February 6, 2020

React 16 introduces a new concept called Error Boundaries which aims to provide proper error handling in the event of an error in a part of the App’s UI. You might have seen something like … Read more

Categories React, Web Development Leave a comment

Fixing “Unauthorized” error when using Basic Auth plugin

December 1, 2019December 1, 2019

If you just started using the Basic Auth plugin for authentication, you might come across issues like 401 (unauthorized) that prevents you from making authenticated requests, even though your code and credentials are correct. Here … Read more

Categories Web Development, WordPress Tags WP REST API 1 Comment

Uploading media using the WP REST API and JavaScript

December 1, 2019November 30, 2019

Recently, I have been working on this React project that allows users to upload some documents which will be tagged to their profile. My initial thought was to figure out how to use the WP … Read more

Categories Web Development, WordPress Tags javascript, WP REST API 12 Comments

Building a simple CRUD app with the WP REST API: Part 1 – GET

November 19, 2019October 28, 2019

At the Contributor’s Day of WordCamp Singapore 2019, I ran a workshop on how to build a simple CRUD app using the WP REST API. Unfortunately, due to time constraint, I didn’t manage to explain … Read more

Categories Web Development, WordPress 2 Comments

WP REST API: An Introduction

October 28, 2019September 4, 2019

Back in June, at a local WordPress Meet-up, I gave an introduction on the WP REST API and also ran a little demo. That was my first ever presentation so I was definitely feeling nervous … Read more

Categories WordPress Leave a comment

Exploring Git: Fetch, Merge

October 28, 2019December 29, 2018

When collaborating with other developers using Git, a simple workflow would be something like: 1. Clone entire project into your local machine2. Work on local copy3. Add and commit changes4. Push commits back to remote … Read more

Categories Web Development Leave a comment

Exploring Git: Tracking branches

October 28, 2019December 23, 2018

When exploring branching in Git, you’ve probably come across the term tracking branch. Or even if you are new to the concept of branching, working with a remote repository should have already exposed you to … Read more

Categories Web Development Leave a comment
© 2023 Edmundcwm