Bite-sized screencasts for React
and frontend developers

How to make Modal Dialogs in React

posted on: 13-jul-2018

What’s the “react” way to trigger a modal when a button is clicked? If you come from Angular, jQuery, or even just vanilla JS, your thought process for opening a modal dialog probably goes something like this:

How to check if a function already exists in Javascript

posted on: 05-jul-2018

I've received a question from a reader whose background is in PHP. The other day he asked me if there was a JavaScript equivalent of PHP’s function_exists() method.

CSS Variables explained with 5 examples

posted on: 25-jun-2018

The plan for this article is to show you how native CSS variables work, and how you can use them to make your life a bit easier. As your web apps grow bigger, the CSS becomes big, redundant and many times messy. Used within a good context, the CSS variables, give you the mechanism to reuse and easily change repeatedly occurring CSS properties.

How to (and how NOT to) learn REACT?

posted on: 06-jun-2018

I recently had a few conversations with some readers of JS Craft about what would be a good approach for them to start learning React. But before that, before getting to the master plan of learning React, let's do a bit of reverse psychology:

What can React Context API do for you? Multi-language text, Modals, and Theme switchers

posted on: 24-may-2018

I am lazy, by default. Learning something new takes effort and time. So, I always start by asking “why should I learn this? How this insert here: framework, library, programing language will make my life easier?”

React context API Tutorial

posted on: 18-may-2018

Hello and welcome! A few days ago React 16.3 was released and alongside other things it also delivered a new React context API. The scope of this tutorial it will be to see in action this new React context API.

The 7 Most Common Mistakes that beginner React Developers Make

posted on: 17-may-2018

Recently I had to hold a React workshop for some developers from a company I am working with. Some of them were juniors and others where experienced backend devs, but, to my surprise, there were some common issue patterns that kept repeating for both categories. So, I’ve decided to make a list of these common mistakes hoping it will save you some moments of frustrations when you first start to learn React:

<newer articles     older articles>