I was going through React LifeCycle methods when I got stumbled on this:
I got confused as I am seeing render() function to run 2 times. All I know is that any function in React Life-Cycle runs only once. So, why am I seening 2 render functions here (or running 2 times). Won't it affect the memory and overuse for running 2nd time.
Also, How we know where render function would run (or at what stage) as it can run at 2 places in React Cycle. Kinldy, help clarify.
Reference:
https://gist.github.com/bvaughn/923dffb2cd9504ee440791fade8db5f9