updated Typescript version in package.json so that error "TS2786 : return type 'ReactNode' is not a valid JSX element." does not occur
Updated the Typescript version to a popular more up to date one. I think it needed to be anything 5.1 and above and I went with 5.4.5 which is 3 months old.
Changes