react ternary attribute 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>
)
}