{"id":15710560,"url":"https://github.com/ivanhuay/rc-if","last_synced_at":"2025-05-12T21:10:05.672Z","repository":{"id":44176578,"uuid":"123130363","full_name":"ivanhuay/rc-if","owner":"ivanhuay","description":"React Component for conditional rendering","archived":false,"fork":false,"pushed_at":"2022-12-03T13:01:59.000Z","size":512,"stargazers_count":4,"open_issues_count":10,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T21:09:58.740Z","etag":null,"topics":["conditional-rendering","ngif","react","reactjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivanhuay.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-27T13:06:56.000Z","updated_at":"2021-10-17T20:33:27.000Z","dependencies_parsed_at":"2023-01-23T05:00:54.686Z","dependency_job_id":null,"html_url":"https://github.com/ivanhuay/rc-if","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Frc-if","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Frc-if/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Frc-if/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Frc-if/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanhuay","download_url":"https://codeload.github.com/ivanhuay/rc-if/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253823453,"owners_count":21969848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conditional-rendering","ngif","react","reactjs"],"created_at":"2024-10-03T21:08:37.866Z","updated_at":"2025-05-12T21:10:05.578Z","avatar_url":"https://github.com/ivanhuay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RcIf conditional rendering\nfor those who do not like to have many ternary operators or multiple functions render\n\n\n## Usage\n```javascript\nimport RcIf, {RcElse} from 'rc-if';\n...\n\nrender(){\n  ...\n\n  \u003cRcIf if={condition} \u003e\n    \u003ch1\u003eI no longer miss ngif\u003c/h1\u003e\n  \u003c/RcIf\u003e\n  \u003cRcIf if={othercondition} \u003e\n    \u003ch1\u003eI no longer miss v-if\u003c/h1\u003e\n    \u003cRcElse\u003e\n      \u003ch1\u003eI love react\u003c/h1\u003e\n    \u003c/RcElse\u003e\n  \u003c/RcIf\u003e\n}\n```\n\n### Clarification\nwithout trying to offend this project is for those who do not like ternary operators or multiple functions render.\n\n\n## v0.0.4\n* RcElse Added: RcElse will render when condition is false.\n## v0.0.9\n* BugFix: Render divs\n* Add react as peer dependencies\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhuay%2Frc-if","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanhuay%2Frc-if","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhuay%2Frc-if/lists"}