{condition && <Component />} or {condition ? <Component /> : <AnotherComponent />}
{condition && <Component />}
{condition ? <Component /> : <AnotherComponent />}
我是歌谣,欢迎和大家一起交流前后端知识。放弃很容易, 但坚持一定很酷。欢迎大家一起讨论
与歌谣一起通关前端面试题