I just now observed that some of my component is having history and some do not have it.
My component is comp1, comp2, comp3
comp1 is parent of comp2, comp2 is parent of comp3
comp1
|____comp2
|_____comp3
Given all are stateful components. And access to comp1
is through routing.
My observations says that those component who are connected through routers directly have only the this.props.history
available.
Q. Can any one throw some light here on this fact?
Q. Can we access history on remaining components?