Content
Frontend Interview Questions - Rajat Explains
frontend
interview
javascript
interview-prep
Frontend Interview Questions - Rajat Explains

Frontend Interview Questions - Rajat Explains

In this series, I will be writing articles explaining some good frontend interview questions and their solutions. These are the questions that I have ...

Difference between arrow and regular functions
javascript
functions
arrow functions
Difference between arrow and regular functions

Difference between arrow and regular functions

Arrow Functions vs Regular Functions. In this post, I’ll show the main differences between the two, so you could choose the right syntax as per your n...

How not to get REJECTED 101
interview-prep
interviews
How not to get REJECTED 101

How not to get REJECTED 101

Qualities to possess as an interviewee

Understanding events in React
react
javascript
event handling
Understanding events in React

Understanding events in React

React events . Synthetic Event . Event Pooling . React v17 changes

Log Appropriately
software development
software engineering
best practices
logging
Log Appropriately

Log Appropriately

Be generous but selective with what you log and how you log it

Virtual DOM — it fascinates me
react
virtual dom
dom
Virtual DOM — it fascinates me

Virtual DOM — it fascinates me

Something about DOM… Before we go any further with this article, we first need to understand what DOM is. I won’t go deep in this because this article...

Async Nature of setState()
react
setstate
state
Async Nature of setState()

Async Nature of setState()

setState() is used in React to update the state of any component. Now setState() does not immediately mutate this state, rather it creates a pending s...

Part I : Understanding Closures in JS
javascript
closure
scope
this
Part I : Understanding Closures in JS

Part I : Understanding Closures in JS

This is the Part I of the blog series in which I will explain Closures in Javascript using examples. Let us say that we want a function called addByX ...

“this” in JavaScript DEMYSTIFIED!!
javascript
this
object
“this” in JavaScript DEMYSTIFIED!!

“this” in JavaScript DEMYSTIFIED!!

Ever since I started learning and coding in JavaScript, the one thing that has always puzzled me and messed with my head was the this keyword. It gave...

GraphQL 101 - What and Why
rest
graphql
data
GraphQL 101 - What and Why

GraphQL 101 - What and Why

Pre-requisite: What is the REST approach for writing and handling APIs and web services. What is GraphQL GraphQL is an API standard that provides a mo...

Make your JS objects iterable
javascript
objects
Make your JS objects iterable

Make your JS objects iterable

We know when we want to iterate over an object, we can iterate over the keys by using for..in loop. It iterates over the list of enumerable properties...

Survivorship Bias
philosophy
bias
survivorship
Survivorship Bias

Survivorship Bias

The term looks big and heavy and it indeed is. It explains a very important and yet neglected aspect of our lives.

Swimmer’s Body Illusion
philosophy
bias
illusion
swimmer body
Swimmer’s Body Illusion

Swimmer’s Body Illusion

Confusing the factors of selection with the consequences.

Confirmation Bias
philosophy
bias
Confirmation Bias

Confirmation Bias

Father of all fallacies

Labs
Autocomplete Input in React

Autocomplete Input in React

<h2>Overview</h2> <p>This is the first lab in the series of cool React mini apps/components that we are going to build together. I have tried to keep it simple and at the same time informative enough so that you folks actually learn about how to create a custom autocomplete input box in React.</p> <p><img src="https://json.commudle.com/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbGNWIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a4b11a33c8ccc76f4a293183a21bbe8271383987/ezgif.com-gif-maker.gif" alt="" width="425" height="519" /></p> <h2>Features of the component</h2> <ol> <li>There is an input box with placeholder</li> <li>On focussing on the input, a list of pokemons with their name and image appear in the div below.</li> <li>You can type something in the input and the list will get filtered accordingly</li> <li>On selecting an item in the list, the list disappears with the name of the pokemon in the input.</li> <li>Nice to have features: <ol> <li>If the list of pokemons is visible, clicking on the input or any where in the page, the list should disappear and should reappear again when focussing on the input</li> </ol> </li> </ol> <p>&nbsp;</p> <h2>Learning Objectives</h2> <p>In this lab, you will learn about different React concepts like <code class="gatsby-code-text">hooks</code>, creating a function component, data fetching in React, usage of array functions like <code class="gatsby-code-text">map</code>, <code class="gatsby-code-text">fill</code>, <code class="gatsby-code-text">filter</code>, etc.</p> <p>&nbsp;</p> <h2>To get the most out of this series:</h2> <p>You need to be at least acquainted with basic JS and React concepts. You will be able to understand everything if you have given atleast a day to learn React.</p> <p>&nbsp;</p> <h2>Code/Environment Setup:</h2> <p>Preferred Code Editor: VS Code,</p> <p>Node version &gt;= 12.0.0</p> <p>Create a react project boilerplate using the <code class="gatsby-code-text">create-react-app</code> CLI or if you have <code class="gatsby-code-text">npx</code> installed on your system you can directly do&nbsp;<code class="gatsby-code-text">npx create-react-app</code></p> <p>To get npx on your system, run</p> <pre class="language-markup"><code>npm install -g npx</code></pre> <pre class="language-markup"><code>npx create-react-app custom-autocomplete-react cd custom-autocomplete-react yarn start or npm start</code></pre> <p>and there you go!</p> <p>You have your react project ready to be consumed and altered into something meaningful.</p>

4

Talks at Events Communities (4)

Rajat Jain

404 members

GDG New Delhi

55270 members

CodeAsylums Community

2322 members

Rajat Jain

404 members

BadgesJavascript Expert

Cookies

This website uses cookies to improve your online experience. By continuing to use this website, you agree to our use of cookies. If you would like to, you can change your cookie settings at any time. Our Privacy Notice provides more information about what cookies we use.