Miron Machnicki
1 min readMar 1, 2017

--

The difference is mentioned in this comment:

So this notation

onClick={ this.handleClick }

shouldn’t trigger unnecessary render. In your example you create new instance of function each time in component property.

The final code is regarding partial application and is not perfect regarding PureComponent. Will update article soon.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Miron Machnicki
Miron Machnicki

Written by Miron Machnicki

Full-stack developer - react.js, node.js, serverless. @machnicki

No responses yet

Write a response