fix: missing prop key (#1291)

This commit is contained in:
远浅 2023-03-06 19:12:50 +08:00 committed by GitHub
parent ddf1eb0219
commit 54374bca05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ const renderer = (rawStr: string) => {
const length = rawStr.split("\n").length - 1;
const brList = [];
for (let i = 0; i < length; i++) {
brList.push(<br />);
brList.push(<br key={i} />);
}
return <>{...brList}</>;
};