Check if a string is a palindrome

What is a palindrome? A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward as forward, such as madam or racecar. Solution Approach First we check if the word parameter is passed then we take advantage...

How to compile multiple javascript files with Webpack

In this post I will show you how to compile multiple javascript files into a single javascript file using the module.exports functionality from Webpack. The advantage of this approach is that you won’t have to import all the libraries one by...

Error handling in React using Error Boundaries

If you have some experience with React, you probably know already that some errors are really frustrating and difficult to resolve. For example: – TypeError: Cannot read property '_currentElement' of null – Cannot read property 'name' of...

How to render arrays in React JS

In this tutorial I will show you how to loop through an array and render its elements in the UI. Overview Let’s get started by building a simple To-do app which will contain: 1 input field 1 button 1 unordered list At the end of this tutorial...

How to make a Pull Request / Merge Request

If you’re using Bitbucket or Github is called Pull Request, but if you’re using GitLab is called Merge Request. These are basically the same thing with different names. This functionality gives people the ability to collaborate on their...

Development

What is a React Portal and how to use it

This feature was introduced in React 16 and the documentation states that: Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component. React portals were created to be used in...

Design

Yotaphone 2 PSD mockup

A Yotaphone 2 mockup including front and back views. Free PSD created and released by Otto Greenslade.
Download

Some UI Design trends for 2018

I think 2018 will be a really exciting year for the UI/UX Design industry. We will see more designers getting involved in technologies such as machine learning, VR (virtual reality) or VUI (voice user interfaces). Here are some design trends I think...

Latest freebies