把if else判斷弄成function,寫到外面去,回傳對應內容。 render函式再去 ... /is-it-possible-to-use-if-else-statement-in-react-render-function )
確定! 回上一頁