kdeloach / react-lineto

Draw a line between two elements in React
MIT License
234 stars 63 forks source link

'LineTo' cannot be used as a JSX component. #65

Open thisisjacopo opened 1 year ago

thisisjacopo commented 1 year ago

Hello there, I'm encountering the following error when trying to use the component within my .tsx file:

'LineTo' cannot be used as a JSX component.
  Its instance type 'LineTo<LineToProps>' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/myLocalPath").ReactNode'.
        Type '{}' is not assignable to type 'ReactNode'.

React v 17.0.2, Typescript 4.4.3