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