title: The expected type comes from property 'src' which is declared here on type 'DetailedHTMLProps<SourceHTMLAttributes<HTMLSourceElement>
body: <p>I am using react with typescript. In my project, I am using forwardRef on my video tag, Here I am getting an error on a source tag of the video saying:</p>
  <p>Type 'PropsWithChildren' is not assignable to type 'string | undefined'.
  Type 'PropsWithChildren' is not assignable to type 'string'</p>
  <p>Here is my code:</p>
  <pre><code>type VideoType = {
      videoSource: string
  }
  
  const Player: ForwardRefRenderFunction&lt;HTMLVideoElement, VideoType&gt; = (videoSource, ref) =&gt; {
    return &lt;video className='player' ref={ref}&gt;
    &lt;source src={videoSource} /&gt;
  &lt;/video&gt;;
  };
  
  export default forwardRef(Player);
  </code></pre>