高阶组件包裹,跳转

This commit is contained in:
HuaYu 2023-01-14 15:43:00 +08:00
parent 249d0a5503
commit 9ed09350f0
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ function WidthUseNavigate(WrapCompontent) {
return <WrapCompontent to={navigate}></WrapCompontent> return <WrapCompontent to={navigate}></WrapCompontent>
} }
} }
// 别名 // 别名
function getDisplayName(WrapCompontent) { function getDisplayName(WrapCompontent) {
return WrapCompontent.displayname || WrapCompontent.name || 'Component' return WrapCompontent.displayname || WrapCompontent.name || 'Component'