how to conditionally render an jsx expression using && code example
Example: conditional jsx property
render() {
return (
<a className="navbar-brand" {... url ? {href: url} : {}}>Logo</a>
)
}
render() {
return (
<a className="navbar-brand" {... url ? {href: url} : {}}>Logo</a>
)
}