The React library is pretty straightforward and is relatively easy to get into, especially with the wide variety of materials that exist to help you learn it. But every tool has its share of tricks or issues that these tutorials usually don’t cover. You get to learn them when someone reviews your code, or worse — when you’re facing a problem and are desperate to find a solution. Hopefully, with this article, I might reveal some of these things about React, and maybe even surprise you!

1. Setting the state by using the previous state is unpredictable.

State management is the foundation of React, and while useStateis probably the most common…

Interviews are hard, especially technical interviews where you’re expected to think, solve, and analyze all while the interviewer stares at you. But what people don’t realize is that being interviewed is basically just another skill, and skills can be honed with the right information and practice.

So if you’re on your job hunt as a Front-end developer right now, you’ve come to the right article, as this one will tell you all you need to know to be prepared!

Photo by Christina @ on Unsplash

About a year and a half ago, the company I used to work for was shut down, and all 100 employees…

React library provides us two built-in hooks to optimize the performance of our app: useMemo & useCallback. At first glance, it might look like their usage is quite similar, so it can get confusing about when to use each. To clear that confusion, let’s dig in and understand the actual difference and the correct way to use them both.

useMemo or useCallback?

Functional components have a problem

Functional components are great. Their combination with hooks allows for much more code reusability and flexibility than Class components. However, they do have one problem: A functional component is the same as the render function we used to have in class…

There are many React state management libraries, and new ones pop up from time to time. But it is not every day that Facebook themselves introduce a state management solution. Is it any good? Does it bring anything new to the table? Let’s dive in and see if it’s worth your time (spoiler: yes, it does).

Recoil.js — A state management library by Facebook

It was quite something, watching Dave McCabe, A Facebook software engineer, introduce a new state management library during the online React Europe 2020 event on Youtube.
Sure, as of May 2020, Recoil is still experimental (though assumably used in production in some of Facebook’s…

For the past three years, the React core team has been working on a major feature that is going to significantly affect both user experience and development process: Concurrent Mode. While work is still in progress and most of its parts are not official yet, let’s dive in and see what awaits us in the near future.

What is React Concurrent Mode?

First, What Does “Concurrency” Even Mean?

As you probably know, Javascript is a single-threaded language. Each task you run blocks the thread from executing the next one until it’s done. However, it doesn’t mean we can’t make progress on more than one task at the same time. Confused? …

Web Accessibility is a relatively new topic web developers and commercial websites have to tackle. It takes effort and might even be a costly process, but the advantages of a web-accessible page are far greater than you would think (and not just because it’s the morally right thing to do, or because of accessibility laws). Let’s dig into these benefits and also learn some ways to make your website a better place to visit.

Web Accessibility

The first time I came face to face with web accessibility was a few years ago, when I was working for a SaaS company called Webcollage…

For the longest time newspapers, magazines and books had one advantage over content designed for websites. It’s rather a small feature, but one that makes content look so much better — the ability to wrap text around images and shapes other than a rectangle. But fear not, because with the help of a CSS feature called ‘CSS shapes’, you can now achieve that as well!

Since the beginning of the internet, we were trained to see our web sites as a collection of boxes. Even when we got a native CSS solution for creating circles, triangles and even trapeze and…

Japan is an amazing country, and it’s hard not fall in love with it after visiting even once. However, its culture is so different and unique, it’s better to come prepared so you’ll enjoy your visit even more. So here are some 10 things you should know before visiting Japan:

1. Trash cans are a rare sight

Japan is probably the most hygiene obsessed nation in the world. This means that unlike other countries, you should never worry about getting sick from street food or an unfamiliar restaurant. This is also the reason for the most clean streets I've ever seen in my life. …

While studying CSS you are often led to believe that inline styles are the strongest form of styling, which can’t be overridden by simple css.

Well, actually there is a rather simple trick to beat this rule!

Let’s say we want to change the color of the text for this div:

This can be done using the following syntax:

And voila!

Shin Megami Tensei: Nocturne, is a role playing game developed by Atlus for the PlayStation 2 and released on 2003. Shin Megami Tensei games tend to present dark themes aimed for more mature audience, and Nocturne is no different. In fact, because the game may raise some controversy over religion and philosophy, it was actually rated M for Mature.

The Story

You, the player, are The Protagonist, a common Japanese high school student on his way to meet with a couple of his friends and to visit your sick teacher in the hospital.

When you arrive at the hospital, you find your…

Sveta Slepner

Frontent developer @Cloudinary and an avid gamer

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