if -else statements don't work inside JSX. This is because JSX is just syntactic sugar for function calls and object construction. Take this basic example:.
確定! 回上一頁