Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- constructor(props) {
- super(props);
- let opportsArray = [
- {
- imgSrc : '../../../Assets/images/opportList.png',
- text : 'bla'
- },
- {
- imgSrc : '../../../Assets/images/opportExp.png',
- text : 'blabla'
- },
- {
- imgSrc : '../../../Assets/images/opportTeam.png',
- text : 'blablabla'
- }
- ];
- this.state = {opports : opportsArray};
- }
- class OpportTemplate extends Component {
- render() {
- return (
- <div className="col-sm">
- <div className="imgWrapper">
- <img src={this.props.children.imgSrc} alt="img" />
- </div>
- <div className="textWrapper">
- {this.props.children.text}
- </div>
- </div>
- );
- }
- }
Add Comment
Please, Sign In to add comment