paint-brush
Demystifying this.bind in Reactby@steveng
6,580 reads
6,580 reads

Demystifying this.bind in React

by Steve Ng2mJune 16th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Have you ever experience reading an existing React code base and wondering why is there a need for <code class="markup--code markup--p-code">this.functionName = this.functionName.bind(this)</code> in the React component constructor? And what make it more confusing is when not all function has binding syntax.
featured image - Demystifying this.bind in React
Steve Ng HackerNoon profile picture
Steve Ng

Steve Ng

@steveng

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite