Not exactly like that, but there are workarounds. There's a section in React's docs about conditional rendering that you should take a look.
確定! 回上一頁