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
- Host: GitHub
- URL: https://github.com/ivanhuay/rc-if
- Owner: ivanhuay
- Created: 2018-02-27T13:06:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T13:01:59.000Z (over 2 years ago)
- Last Synced: 2025-05-12T21:09:58.740Z (about 1 month ago)
- Topics: conditional-rendering, ngif, react, reactjs
- Language: JavaScript
- Size: 500 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: Readme.md
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