import React from "react";
class CArea extends React.Component{
constructor(props){
super(props);
this.state={
text:props.text,
image:props.image,
ballon:props.ballon
}
// this.setValue=this.setValue.binde(this);
}
render(){
return(
<a href="">
<div className="item">
<div className="area">{/** внутренний блок */}
{this.state.image}
<img src="{this.state.image}" alt="product"/>{/* картинка */}
<p>{this.state.text+this.state.ballon}</p>
<div className="sale">{/**скидка */}
<h4> {this.state.ballon}</h4>
</div>
</div>
</div>
</a>
)
}
}
export default CArea;