DEV Community

Discussion on: Simplify condition rendering in React.js

Collapse
 
codyseibert profile image
Cody Seibert

To each their own, but I argue this is a unnecessary abstraction. It’s like creating an add() function that adds numbers when you can do a + b in code.

Collapse
 
rmurati profile image
Redžep Murati

For me honestly it was more of a stylistic choice. I like when my jsx resembles closely HTML