reactjs - 警告: プロパティ `id` が一致しませんでした。NextJS のサーバー
私は自分のプロジェクトの警告を取り除こうとしています:
react-dom.development.js?61bb:67 Warning: Prop `id` did not match. Server: "t4j6jv-aria" Client: "v0lutu9-aria"
残念ながら、問題の原因が全くわかりません。どんな助けでも感謝します。CasinoList.tsx の60行目は次のようになっています:
これは行#60です:
60行目以前のコード:
interface IProps {
country: string;
flag: string;
casinoComments: {
id: number;
commentId: number;
content: string;
created: string;
likes: number;
author: string;
};
}
interface IState {
slug: String;
selectedLanguage: String;
visible: Boolean;
showList: Boolean;
highlightedHobby: Boolean;
isMobile: Boolean;
tagItems: Array<tagItems>;
activeTag: String;
tagId: Number;
}
interface tagItems {
id: number;
label: String;
name: String;
state: Boolean;
}
export default class FeaturedCasinos extends React.Component<
IProps,
IState,
{ country: String; flag: String }
> {
constructor(props: IProps) {
super(props);
何かアイデアはありますか?

