It's actually easier than all of the answers above. You just need to follow the example below:
type Props = {
id: number,
name: string;
// All other props
[x:string]: any;
}
const MyComponent:React.FC = props => {
// Any property passed to the component will be accessible here
}
Hope this helps.