Maybe little bit stupid question but what is better:
if(fieldIsInvalid){ setErrorField(‘…’) return }
or
if(fieldIsInvalid){ return setErrorField(‘…’) }
I see different things at different times and I was just wondering if one thing is better than the other and why!!
submitted by /u/JRNKNG
[link] [comments]