React Nathan Krasney
1 min readMay 25, 2018

--

ShouldNotUpdate :

  1. the date time is changing so it is logical that it will be rendered , i see no need to touch shouldComponentUpdate in this scenario
  2. even if i remove date time from the returned JSX of ShouldNotUpdate then although render is called it is NOT rendering !!! and its easy to check using F12->customize and control Dev Tools->more tools->Rendering->PaintFlashing . Again no need to touch shouldComponentUpdate

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

--

--

React Nathan Krasney
React Nathan Krasney

Written by React Nathan Krasney

25+ years developing software. Lead web instructor & mentor. Focused in last few years on React. Check more info in www.nathankrasney.com

No responses yet

Write a response