20 lines
473 B
JavaScript
20 lines
473 B
JavaScript
import React, {Component} from 'react';
|
|
|
|
class StopComponent extends Component {
|
|
render() {
|
|
return (
|
|
<div>
|
|
<h1>
|
|
{this.props.stop.name},
|
|
{this.props.stop.id},
|
|
{this.props.stop.lat},
|
|
{this.props.stop.lon},
|
|
{this.props.stop.track}
|
|
</h1>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
// TODO Add css
|
|
export default StopComponent
|