Author Archives for Eric Njanga

Photo by Kevin Grieve on Unsplash

React and the virtual DOM

April 8, 2018 3:18 pm Published by Leave your thoughts
The virtual DOM is a programming technique that keeps a “virtual” representation of the UI in memory and synchronizes it with the “real” DOM using specific libraries (ReactDOM in this case). The synchronization of the “virtual” and “real” DOM happens by... View Article

Photo by Jakob Owens on Unsplash

Functional component: Definition

March 6, 2018 9:16 am Published by Leave your thoughts
Definition A functional component is a JavaScript function that accepts a “props” object argument with data and returns a React element.   Usage A functional component has limited features and is mostly used for: Rendering purposes: It simply renders a... View Article

Appreciating nature: Photo by Kalen Emsley on Unsplash

2018 Resolutions

January 1, 2018 8:50 am Published by Leave your thoughts
2018 is here! Wow, it feels like the previous year just flew by. I feel greatful about 2017 because I challenged myself at many things, made lots of personal discoveries and learned tremendously. But, I also feel the need to improve... View Article

Photo by S. Ross Morris on Unsplash

Reusing code between components in React

December 29, 2017 7:48 pm Published by Leave your thoughts
Composition Composition in React is the action of using components as building blocks for other components using the techniques of “containment” or “specialization”. Containment Containment is all about creating “empty spots” in a component for any random component to fill.You... View Article

Photo by David Marcu on Unsplash

Controlled Components

December 21, 2017 5:14 am Published by Leave your thoughts
Let’s look at a controlled component as a tool in another component’s hand. Such a component have no “state” on its own and exists solely for the purpose of facilitating the application’s flow, for instance: A component which receives its... View Article

Photo by Daria Nepriakhina on Unsplash

Canadian Government Startup Initiative

December 16, 2017 9:04 am Published by Leave your thoughts
The Canadian government just recently launched a program aimed at modernizing its digital services. The rise of tech giants and their disruptive impact on the Canadian way of life (shopping, information consumption, entertainment, …) has pushed the government into seriously considering migrating... View Article

© 2018 Copyright Eric Njanga | |