conditional html entitey in react jsx 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>
)
}