An open API service indexing awesome lists of open source software.

https://github.com/ivanhuay/rc-if

React Component for conditional rendering
https://github.com/ivanhuay/rc-if

conditional-rendering ngif react reactjs

Last synced: about 1 month ago
JSON representation

React Component for conditional rendering

Awesome Lists containing this project

README

        

# RcIf conditional rendering
for those who do not like to have many ternary operators or multiple functions render

## Usage
```javascript
import RcIf, {RcElse} from 'rc-if';
...

render(){
...


I no longer miss ngif




I no longer miss v-if



I love react




}
```

### 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