WordPress: How to create a local copy of a live site for development and testing

In this article, I will detail how to make a local “dev” copy of my live WordPress blog for the purpose of testing new styles, developing plugins and experimenting with new themes. My live WordPress blog is at http://bluegalaxy.info/codewalk. On my local Windows PC I have Bitnami WAMP stack installed, which includes an Apache2 server, … Continue reading WordPress: How to create a local copy of a live site for development and testing

Atom: How to enable minimap and file-icons extensions

This article describes a couple of useful plug-ins for the Atom code editor. In order to install the “minimap” and “file-icons” packages, you can follow the same package installation instructions that were used for the “data-atom” package found in this previous article: Atom: How to run MySQL queries in Atom using a package called Data Atom … Continue reading Atom: How to enable minimap and file-icons extensions

React: How to call a parent function from a child function and/or pass data to the parent function

In a continuation of the theme of how to pass information around in react, this article details how to call a parent function from a child function. This previous article details how to pass state from parent to child: React: How to pass state information from parent to child Allowing a child function to call … Continue reading React: How to call a parent function from a child function and/or pass data to the parent function

React: How to pass state information from parent to child

In a react script, to pass state information from a parent component to a child component, the state information needs to be passed as a prop. For example: numturns={this.state.number_of_turns} Now, “numturns” can be used as a prop in the child. For example, inside the child handleclick function: console.log(“Child communication, number of turns from parent: “, … Continue reading React: How to pass state information from parent to child