Ultimate Blocks : Blocks Plugin For Gutenberg

So, I just released a new plugin – Ultimate Blocks. It's built to work with Gutenberg Editor. If you don't know what Gutenberg is, it's the future editor for WordPress. Learn more about Gutenberg here. So, what's Ultimate Blocks about? Ultimate Blocks is a collection of blocks for Gutenberg. By default Gutenberg comes with all

How To Convert SVG to JSX

Since, I have started building Ultimate Blocks, I have been using SVG icons as the icon of the blocks. But to use them with the blocks, the better way is to convert them to JSX and use them. Here’s how I do it. Convert SVG to JSX Open the SVG file with any editor. Copy

How To Override Local Repository With Git Repository

This is a little post on how you can override your local repository with files from git repository. Why would you want to do that? So, recently I was working on a WordPress plugin. I was using git for version control. I committed my changes to git. After that I made some changes in the

Arrow Function in JavaScript

Arrow function is a different syntax for creating JavaScript functions. It was introduced with ES6. There are few benefits to them – they are much more concise than regular functions, they have implicit return which lets us write lesser code. We will get more into that later on. Arrow Function Syntax A normal JavaScript function

Understanding “let” and “const”

let and const are different ways of creating variables. We already know var. var creates a variable in JavaScript. Now the thing is, some variables never change. They are so-called constants. Technically they are. They are all just variables because JavaScript knows variable. With ES6, a version of JavaScript two different keywords were introduced –