1render() {
2 return (
3 <a className="navbar-brand" {... url ? {href: url} : {}}>Logo</a>
4 )
5}
1// single prop
2propName={ condition ? something : somethingElse }
3propName={ condition && something }
4// multiple props
5{ ...( condition ? { ...setOfProps } : { ...setOfOtherProps })}
6{ ...( condition && { ...setOfProps })}