I get a typeScript error after upgrading to version 4 Used in useParams () from react-router-dom
"typescript": "^4.0.2"
To make it function as before, just add ":any"
const { sumParams } : any = useParams();