React Higher Order Components in depth

I’m using 2 composed HOCs using II pattern, like this wrapTable(sortTable(Table)), both the HOCs store some internal state. However, when I access “this” in the sortTable HOC it is referring to the wrapTable this, so I’m not able to access this.state

Like what you read? Give Swami Kevala a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.