Question: I have a `activity` in which I load a `fragment`. Lets say I have two sections inside `fragment layout`(section A and B) , but while I switch to landscape then I have to show only section A . How will i know the orientation change inside fragment.

Answer: 
The `getElement` method returns the received data, which is an `object` and that is not a valid React element, meaning it cannot be directly rendered. Only a React element, or primitive value that has natural string representation can be rendered in the tree, meaning if your data has a `name` string property, this would work:

```
<strong>
 {this.getElement().name}
</strong>

```
I managed to fix this issue. It turned out the problem wasn't with the object, but with the data itself. When it wasn't downloaded, it would return said error.

My solution was the simplest possible:

```
  render() {
    if(this.state.loaded) {
      return <span>{this.state.data[this.props.id].name}</span>;
    } else {
      return false;
    }
  }

```

I have discarded the `getElement` method as well, since it's not necessary here.