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

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.

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

```