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
Biggest Tech Outage | Basics explained | Microsoft | Crowdstrike
9:38
Sourav Singh Diaries
Рет қаралды 647
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 34 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 75 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 168 МЛН
4 Top-notch Coding Projects for Employment!
9:35
Tech Success Path
Рет қаралды 3,5 М.
Asking strangers their Salary and Profession in Bangalore - Part 1
9:50
Sourav Singh Diaries
Рет қаралды 150 М.
AIR  INDIA CUSTOMER CARE |Stand up comedy by Gaurav Gupta
12:59
Gaurav Gupta
Рет қаралды 136 М.
Asking strangers their RENT in Bangalore | MG Road Edition
13:01
Sourav Singh Diaries
Рет қаралды 124 М.
How To Price For B2B | Startup School
17:46
Y Combinator
Рет қаралды 3,1 М.
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 34 МЛН