fix: missing prop key (#1291)

pull/1294/head
远浅 2 years ago committed by GitHub
parent ddf1eb0219
commit 54374bca05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}</>;
};

Loading…
Cancel
Save