JS-Higher order functions Part 1- map( ) | connect( )

  Рет қаралды 265

Sourav Singh Diaries

Sourav Singh Diaries

4 жыл бұрын

Part-1 talks about higher order functions in Javascript and mental models of frequently used Higher order functions like map( ) of Array and connect( ) of Redux.
6:33 - connect( ) of redux
Remember that actual implementation of connect( ) would be a bit complex but this one gives a construct to think in that direction.
In Part-2, I will talk about how memory allocation, scope and closures work in higher order functions.
Gist link for connect( ) mental model : gist.github.com/singh-sourav/...
Connect with me here :
LinkedIn : / sourav-singh-6b57b5101
From,
Sourav Singh
SDE at Disney+ Hotsar | Ex-Swiggy
Former Mentor at Alien Brains Educations

Пікірлер: 2
@sourav_singh_diaries
@sourav_singh_diaries 3 жыл бұрын
Small edit : I missed "return" in render. and For proper diff of states, oldState should be captured inside render() method. So that each time, component renders we should have the current oldState . this.oldState= mapStateToProps().. Go to gist link in description for corrected model
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 105 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 9 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 80 МЛН
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
Asking strangers their Salary and Profession in Bangalore - Part 1
9:50
Sourav Singh Diaries
Рет қаралды 149 М.
VICKY KAUSHAL REACTS TO VICKY KAUSHAL MEMES ft. VICKY KAUSHAL
26:42
Tanmay Bhat
Рет қаралды 6 МЛН
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 68 М.
Economist fact-checks Scott Galloway’s Anti-Boomer TED Talk
26:05
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 105 МЛН