title: Typescript object literal may only specify known properties error
body: <p>I am new to typescript/react. I have this type error below which I am unsure on how to tackle. Can anybody enlighten me? </p>
  
  <p>Error:
  [tsc] src/webparts/jsonFeed/components/JsonFeed.tsx(40,8): error TS2322: Type '{ postOrLinkedIn: any; }' is not assignable to type 'ReactElement ReactElement ReactElement
  
  <p>JsonFeed.tsx</p>
  
  <pre><code>export default class JsonFeed extends React.Component&lt;IJsonFeedProps, IJsonFeedState&gt; {
  
    // State needed for the component
    constructor(props) {
      super(props);
      this.state = {
        description: this.props.description,
        posts: [],
        profile: {},
        isLoading: true,
        jsonUrl: this.props.jsonUrl, // This was just for testing purposes
        postCount: this.props.postCount,
        errors: null,
        error: null,
        listName: this.props.listName, // This will actually select the list
        item: this.props.item, // This will actually select the list
      };
    }
  
    // Renders to the browser
    public render(): React.ReactElement&lt;IJsonFeedProps&gt; {
  
      let postOrLinkedIn;
      if (this.props.item !== 'linkedin') {
        postOrLinkedIn = &lt;Posts /&gt;;
      } else {
        postOrLinkedIn = &lt;Linkedin /&gt;;
      }  
  
      // What we render
      return (
        {postOrLinkedIn}
      );
    }
  
  }
  </code></pre>
  
  <p>IJsonFeedProps:</p>
  
  <pre><code>export interface IJsonFeedProps {
    description?: string;
    postCount?: number;
    jsonUrl?: string;
    listName?: string;
    item?: string;
    posts?: any;
    postOrLinkedIn?: boolean;
  }
  </code></pre>