Open in app
Home
Notifications
Lists
Stories

Write
nashe omirro
nashe omirro

Home

Oct 22, 2021

What’s with functions inside setState?

Know the difference between passing value versus passing function. Let’s get straight to the point here and ask two questions, why do we have an option to pass a function to setState, and how does passing a function solve that? setState is asynchronous If you don’t know already, setState() is actually asynchronous, this…

React

3 min read

What’s with functions inside setState?
What’s with functions inside setState?

Sep 28, 2021

Why they tell us not to declare variables with var

Two words, Hoisting and Scope Almost all tutorials when you’re starting out will say that you shouldn’t use the var keyword, as it results in ambiguity and that it acts differently. But why is that? You might think it’s just an outdated keyword that had bugs on it, but actually…

Java Script

3 min read

Why they tell us not to declare variables with var
Why they tell us not to declare variables with var

Sep 26, 2021

Hoisting in Javascript

It’s one of those words that seems difficult but really easy to wrap your head around. What hoisting means is to reserve space on the memory heap for your variables and functions. variables defined with the var keyword gets “partially” hoisted and function declarations gets “fully” hoisted. Take the below…

Java Script

2 min read

Hoisting in Javascript
Hoisting in Javascript
nashe omirro

nashe omirro

Writing is my way to express self-growth & understanding over a topic or concept.

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable