React SSR with Isomorphic-css-loader

Index.js: import App from './app'; import React from 'react'; import ReactDOM from 'react-dom'; import { renderToString } from "react-dom/server& ... ...

React Ref

Ref is just a way to manipulate the DOM just in a similar manner as jQuery. Simple example: import React from "react"; import ReactDOM from ... ...

React Context API

Simple example: import React from "react"; import ReactDOM from "react-dom"; const MyContext = React.createContext(); const MyProv ... ...

A dump yet clever way to debug wp-cron

A new way: //Get log from cron jobs: $output = json_encode($YOUR_OBEJCT); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://www.369usa.com/msg/ ... ...

Some Notes about Docker + PHPUnit

This is kinda a confusing subject to learn for me, especially when I am not very familiar with docker yet, nor with PHPUnit. Here is my note as I go a ... ...

Docker + WordPress Setup

All the instruction will be found at the link underneath: https://davidyeiser.com/tutorial/docker-wordpress-theme-setup When I was installing this, I ... ...

Run Docker with Nginx

Docker Useful Commands: docker run --name -d -p : docker start docker ps docker ps -a docker rm -d: weather run in the background or not. Note: usuall ... ...

Docker Installation(Ubuntu)

Docker comes in two flavours: The Comunity Edition (CE) and the Enterprise Edition (EE). See this question for the differences. Just take Docker CE if ... ...