fix: missing prop key (#1291)
This commit is contained in:
parent
ddf1eb0219
commit
54374bca05
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ const renderer = (rawStr: string) => {
|
||||||
const length = rawStr.split("\n").length - 1;
|
const length = rawStr.split("\n").length - 1;
|
||||||
const brList = [];
|
const brList = [];
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
brList.push(<br />);
|
brList.push(<br key={i} />);
|
||||||
}
|
}
|
||||||
return <>{...brList}</>;
|
return <>{...brList}</>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue