This is the most important list of the shortcuts every developer should learn asap. I wish I knew them when I started my career as a developer so i could save my time on manual typing.

1. Alt + Up or Alt + Down: Move line

Pretty easy. Move line up and down.

For mac use Opt+Down or Opt+Up

2. Ctrl + Shift + I: Formats the entire file

You can format the whole active file or ask you to download a Formatter extension. I love to use Prettier extension to format JS code

For mac use Shift + Option + F

For Windows use Shift + Alt+ F

3. Ctrl+/ : Toggle line comment

You can easily toggle between comment and uncomment line behavior.


When I want to visualize data on a web app, my preferred environment is using D3.js in a React application. But these two technologies are quite hard to combine. The reason is that they both want to handle the DOM.

Let’s start it!

Creating SVG elements

When we want to visualize data in the browser, we will most probably want to work with SVG elements because they are very expressive and are absolutely positioned.

To begin, we shall render a simple <svg> element.

Managing state in React with Redux can be extremely difficult. We have to deal with the heavy amount of boilerplate which can be a headache for the developers. The creator of Redux Dan Abramov describes the annoyance better than I:

Photo by Caspar Camille Rubin on Unsplash

React has been around since 2013. Building web applications with React has become difficult for developers that are coming from other frameworks or programming languages. For example if you have worked with Angular you could say that you have all the necessary features at your disposal.

React only helps us to develop Component driven UI with functional Components and props. React has some pre defined solutions like React Hooks for local state management and side effects. In the end we are dealing with Components in React.

In this article I am going to discuss complementary libraries that can help you…

In this article we are going to discuss how to do performance optimization of a React app. We usually do this by using pagination or visualization in our app, but the question is if we have an app in which we want to render a lot of Components and we don’t want to compromise on the performance and UX of it?

For the purpose of demonstration I am considering an app which will render 30000 squares on the screen and I will utilize React 17.0 and functional Components with hooks. Our app has two Components: <App /> and <Square />.

Part 11

So let’s work on the toggle that’s going to turn on and off this extra dropdown whenever we specify how things should be sorted. So, it sounds like it should be pretty similar to Add Appointment and it is, but there are some interesting differences right here. So, it’s going to seem pretty similar at least.

Part 10

The modern way to work with React projects is to use a feature called Hooks. Hooks allow you to use state and other react features without having to write classes.

Let’s go ahead and work on creating a toggle in the component called AddAppointment to turn on and off the showing of this form:

Part 9

Components need to do more than just displaying content. So let’s take a look at how we can pass information down to a component. And to do that I’m going to create another new component that’s going to have sort of the information for each one of these Appointments items.

Part 8

It’s time to start adding some appointments. So, I’ve prepared a bit of data here for you, you can get it from the following gist:

and grab this and work with it. So, I’m going to go and select all this and I’m going to place it in this source folder. So, if I insert a file here, I’m going to call it data. JSON and I paste all of my JSON code in there.

Part 7

So let’s go ahead and add another component that will allow us to add appointments into our project. So to do that I’m going to go into my components sub folder and make a new file. And this one’s going to be called add an appointment.

Imran Farooq

React ecosystem enthusiastic. Connect with me @

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