I m just trying to see the order of execution of lifecycle methods, but I find Logs in console 2 times. I m wondering if constructor,getDerivedStateFromProps,render methods are executed twice, but componentDidMount is executed only once.
I just created a component, called all life cycle methods with console, I m including this component in App.js .
But I tried executing the same code in online editor https://repl.it/repls/ProbableLinedSpof Here I m getting the proper output(same code in executed even here)
Someone please help with the fix.

