https://github.com/aakashdinkarh/jsx-switch
Conditional Rendering is one of the most used concepts while writing a component, this is to reduce the complexity and increase the readability.
https://github.com/aakashdinkarh/jsx-switch
conditional-rendering jsx-switch switch-case switch-case-statements switch-component switch-jsx swtich
Last synced: 4 months ago
JSON representation
Conditional Rendering is one of the most used concepts while writing a component, this is to reduce the complexity and increase the readability.
- Host: GitHub
- URL: https://github.com/aakashdinkarh/jsx-switch
- Owner: aakashdinkarh
- Created: 2023-08-21T06:40:37.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-02T12:18:59.000Z (9 months ago)
- Last Synced: 2025-01-15T13:57:07.769Z (5 months ago)
- Topics: conditional-rendering, jsx-switch, switch-case, switch-case-statements, switch-component, switch-jsx, swtich
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Conditional Rendering is one of the most used concepts while writing a component.
Sometimes rendering logic for the components become complex and we end up writing something which is not readable, also it can cause several unintended bugs.
So to handle that situation we case Switch case as ->
```
Kid
12 && age <= 18} >Teenager
18} >Adult
Person```