getRootComponentInLithoView

Returns the root component of the LithoView.

example:

class FBStory : KComponent() {
override fun ComponentScope.render() {
return Story()
}

findRootComponentInLithoView will only be able to return FBStory component, from a LithoView with FBStory as root. If you would like to be able to find the Story component, see findDirectComponentInLithoView