Re:React best practices
by fiddlerwoaroof on Monday May 03, 2021 @05:48PM
(#27031177)
Yeah, this is the sort of situation where you want to employ some sort of polymorphism rather than a static conditional, Iād think.
In general, while some of the advice here could be useful, my experience has led me to very different opinions about structuring react.
I've only done smaller projects in React, but in 15 years of writing programs, that instinctively looks like a pretty severe code smell.