title: JSX Element type 'void' is not a constructor function for JSX elements
body: <p>What am I doing wrong here?</p>
  
  <p>It doesn't like the way I am calling <code>Items</code></p>
  
  <pre><code>import React, { Component } from 'react';
  import { Link } from "react-router-dom";
  
  interface LinkedItemProps {
      icon: string;
      title: string;
  }
  
  export const Items = ({icon, title}: LinkedItemProps) =&gt; {
      &lt;div&gt;
          &lt;div className="nav-menu-link-icon"&gt;
              {icon}
          &lt;/div&gt;
          &lt;div className="nav-menu-link-label"&gt;
              {title}
          &lt;/div&gt;
      &lt;/div&gt;
  }
  
  export default class LinkedItems extends React.Component&lt;any, any&gt; {
      render() {
          return (
              &lt;Link
                  to={this.props.link}
                  title={this.props.title}
                  onClick={this.props.afterClick}
              &gt;
                  &lt;Items icon={this.props.icon} title={this.props.title} /&gt; //error
              &lt;/Link&gt;
      )}
  }
  </code></pre>
  
  <p>P.S. Thank you <a href="https://stackoverflow.com/users/5928186/shubham-khatri">Shubham Khatri</a> for marking this as a duplicate of a question that does not remotely resemble what I asked.</p>