Unverified Commit 54374bca authored by 远浅's avatar 远浅 Committed by GitHub

fix: missing prop key (#1291)

parent ddf1eb02
......@@ -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}</>;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment