Replies: 1 comment
-
例子 function LinkElement(props) {
if (props.rel === "icon") {
return <link {...props} type="xxxxx" />;
} else if (props.rel === "stylesheet") {
return <link {...props} type="yyyyy" />;
} else {
return null;
}
}
<Links LinkElement={LinkElement} /> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
构建后的首页如下
想给link标签里面的css加上type属性,请问如何操作,多谢
Beta Was this translation helpful? Give feedback.
All reactions