React If Elseif Else Render
This package is for reactjs to use 'if elseif else' in render
function
Installation
npm
npm install react-
yarn
yarn add react-
Example
; { var i = 3; // it will render '<p>Else</p>' return <If condition=i == 1> <Then> <p>Then: 1</p> </Then> <ElseIf condition=i == 2> <p>ElseIf: 2</p> </ElseIf> <Else> <p>Else</p> </Else> </If> ; }