JavaScript Closures in React Hooks

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Don't hate on w3s, it's much more approachable for beginners than other resources.

OrPhEeUs
Автор

He is the only person I know who could explain closures in less than 3 mins. Thank you!!!

boredomindex
Автор

C’mon bro,
Don’t hate on w3 schools. That site’s great!

fieryscorpion
Автор

Yo, I've been trying to read 3 pdfs and multiple web resources for this closure thing. But only this short video was able to touch my comprehension in terms of closure. Bro, thank you!

mikeandrewfernandez
Автор

Don't hate w3s. Hate people who use FOO and BAR as variable

alfanzain
Автор

W3S is great for getting a quick refresher and testing things out.

j.r.r.tolkien
Автор

Nice insight but w3s is very useful especially for beginners though.

josephjasonbuhain
Автор

He learned from w3 schools, ungrateful, this is the type of person you shouldn't have relationship with.

hellelo.
Автор

W3School came out way after I learned programming. But I'm no fool, it's actually a pretty useful website. Not only for simple learning, but also can be useful for API/documentation. The layout makes things pretty easy to read tool.

ShiloBuff
Автор

I know people don't really like w3s, but w3s was really helpful for me when I started programming

octubre_lilaka
Автор

I just got asked this question in the interview 😂 was wondering when you are even going to use it practically until I saw this video

ninhdang
Автор

"Functional programming" like this is just OO in disguise

iantimmis
Автор

That's how global scope works, that's why we have a global and local scope.

edcarlo
Автор

Unfortunately, the to reader of code, this hidden state (and you don't know how many of them are lurking) makes it hard to reason about a program. Only in the browser IDE can you see how many closures were created. A very bad idea for maintainability.

edwarddejong
Автор

Commenting to remember this is great example

mfsbo
Автор

Literally nothing to do with react hooks from the context of the clip

jonopens
Автор

Hate it or not w3s has its own shiny time and still persist to this day 😁

savire.ergheiz
Автор

Too bad I was looking for Closures in Angular, but this doesn't apply because it's for "React Hooks".

simomoujami
Автор

What series is this? Can someone provide me the source?

yachujoshi
Автор

Not familiar with js, but when you use the keyword “let”, i know that is to declare a mutable variable. However, when you call getAdd(), why doesn’t foo go back to 1? Is it something to do with the const add = getAdd()?

milesstripling