你可以使用JavaScript 的if 或三元運算子(Conditional (ternary) Operator)。 例如顯示登入狀態的元件: function UserGreeting(props) { return ...
確定! 回上一頁