perf: use memo, fix quicklinks key err

This commit is contained in:
David Ralph
2022-10-30 16:56:26 +00:00
parent a9276a5fdb
commit 271af64d07
34 changed files with 146 additions and 46 deletions

View File

@@ -1,4 +1,6 @@
export default function ProgressBar({ count, currentTab, switchTab }) {
import { memo } from 'react';
function ProgressBar({ count, currentTab, switchTab }) {
return (
<div className="progressbar">
{count.map((num) => {
@@ -14,3 +16,5 @@ export default function ProgressBar({ count, currentTab, switchTab }) {
</div>
);
}
export default memo(ProgressBar);