jsx how to show conditionally 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>
)
}