score:3

Accepted answer

typescript doesn't reject extra props that are passed with the prop-spread syntax, so this works:

    <listitem {...{to: "/profile"}} component={link}>
      profile
    </listitem>

Related Query

More Query from same tag