Files
old-slucajna-televizija/web/src/PairComponent.js
2017-10-25 00:28:31 +02:00

19 lines
434 B
JavaScript

import React, { Component } from 'react';
export default class PairComponent extends Component{
constructor(props) {
super(props);
this.state = {pairName: this.props.pair, index: this.props.index};
}
render(){
return (
<div>
<div className = "horizontalDiv">
<div>{this.state.index+1}. {this.state.pairName.name1} - {this.state.pairName.name2}</div>
</div>
</div>
)
}
}