0.0.12 • Published 5 years ago

rc-if v0.0.12

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

RcIf conditional rendering

for those who do not like to have many ternary operators or multiple functions render

Usage

import RcIf, {RcElse} from 'rc-if';
...

render(){
  ...

  <RcIf if={condition} >
    <h1>I no longer miss ngif</h1>
  </RcIf>
  <RcIf if={othercondition} >
    <h1>I no longer miss v-if</h1>
    <RcElse>
      <h1>I love react</h1>
    </RcElse>
  </RcIf>
}

Clarification

without trying to offend this project is for those who do not like ternary operators or multiple functions render.

v0.0.4

  • RcElse Added: RcElse will render when condition is false.

v0.0.9

  • BugFix: Render divs
  • Add react as peer dependencies
0.0.12

5 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago