19 lines
351 B
JavaScript
19 lines
351 B
JavaScript
|
|
import React, { Component } from 'react';
|
||
|
|
|
||
|
|
export default class PairComponent extends Component{
|
||
|
|
constructor(props) {
|
||
|
|
super(props);
|
||
|
|
this.state = {pairName: this.props.pair};
|
||
|
|
}
|
||
|
|
|
||
|
|
render(){
|
||
|
|
return (
|
||
|
|
<div>
|
||
|
|
<div className = "horizontalDiv">
|
||
|
|
<div>{this.state.pairName}</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
)
|
||
|
|
}
|
||
|
|
}
|