보기 쉽게 정리하려 포스팅합니다. 1. React if { exampleIdx === 1 && 1 출력 } { exampleIdx === 2 && 2 출력 } //Show if someItem {someItem && displayThis} //Show if else {someItem ? displayThisIfTrue : displayThisIfFalse} https://stackoverflow.com/questions/36771017/what-is-the-equivalent-to-ng-if-in-react-js