Converting React files to Typescript
I am in the process of learning Typescript and am converting my React project to TS. However, I've hit a bit of a roadblock and I'm not quite sure what to do with this file: import { Grid } from '@material-ui/core'; import { useParams } from 'react-router-dom'; // @ts-ignore import ProductImage from './ProductImage.tsx'; // @ts-ignore import ProductInfo from './ProductInfo.tsx'; type Props = { products: { id: number; price: number; description: string; listing_type: string; image: string; }[]; addToCart: (e: MouseEvent) => void; user: { id: number; isAuth: boolean; }; } const Product: React.FC<Props> = ({ products, addToCart, user }) => { const { productId } = useParams<{productId: string}>() const product = products.find(product => product.id === parseInt(productId)); return ( <div> <Grid container spacing={1} style=> <Grid item sm={4}> ...