Renaming module Imports like a Pro, now with added use-case!

Photo by Finan Akbar / Unsplash

The basics again (in brief)

A module (as an example, a Javascript file like my-module.js) can export functionality or objects from itself…

Photo by Daria Shevtsova from Pexels
Photo by Daria Shevtsova from Pexels

Spot the difference!

Obligatory article image of a fake pug as per the norm. Artist accreditation —


  • Closures are essentially returned functions that remember their scope information. This means that they remember where to find the values related to their operation so long as they were defined within the scope of the function when it was declared; taking a snapshot of the variables at the time of invocation.. …

Basics — Refreshed

Objects in JavaScript are free-form and mostly don’t follow any structure. Their structure can be best compared to being similar to Map objects in Java, consisting of key-value pairs.

let object = { 'oldProp':'Old Value'};
object.newProp = 'New Value';
console.log(object); …

The important things you can quickly learn to be informed and confident with using and conversing on React Router v4

Obligatory image of complex train routing only abstractedly related to this article. Image courtesy of

What is React Router?

React Router is a client-side router (CSR) for use with React projects (I know, duh right?). It provides routing which is the fancy term for the rendering of different components depending on URL paths within a React web application.

How does one install and use?

Run the following command in your project to save react-router-dom as a project dependency:

npm i -S react-router-dom
import * from 'react-router-dom'

Setting up your basic routes

Link components can be thought of as your typical anchor links that, when clicked, redirect the user to the path specified in its to property.

Greg Byrne

Engineer of Software. Breaking life’s hurdles with peregrine speed and a manatee’s grace.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store