<div>....a.sd</div>
}
Is that okay?
yeah, absolutely standard react
I mean all that boolean and undefined
Why not just: { this.props.thing || <div>...a.sd</div> }
I think you need to return null
What happens with false / undefined?
Maybe error, I'm not sure
false is fine, undefined isn't
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
i use this all the time
Обсуждают сегодня