Hoc :

Example :

const withPromotedLabel =(card)=>{
	return (props)=>{
		<div>
			<div>recommended</div>
			<Card  {...props} />
		</div>
	}
}

Calling hoc :

const PromotedComponentHoc=withPromotedLabel(NormalCardComponent)

//Jsx :
data.promoted===true ?<PromotedComponentHoc data= data> :<NormalCardComponent data= data>