what do you feel about the approach of moving all that logic from the IIFE to a helper method?
Rob Wilkinson

I’m not a fan, simply because it takes the dev reading your code out of the flow of the JSX. If it’s a small bit of conditional logic, I’d say use an IIFE — if it’s bigger, make another subcomponent.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.