React version: 16.13.1
React Script Version: 3.4.1
Link to code example: https://github.com/radhey7705/React-Project.git
after run npm start, Class component is working two times
after run npm start, Class component should only work single time.
In Strict Mode, react intentionally double-invokes constructor, render, and shouldComponentUpdate.
It helps to detect unexpected side effects.
More details in the below link:
https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects
This is intentional, as mentioned above 馃槃 so I am going to close this issue.
Thanks for leaving the link, @Reflex-Gravity
Most helpful comment
This is intentional, as mentioned above 馃槃 so I am going to close this issue.
Thanks for leaving the link, @Reflex-Gravity