import React from 'react';

export default class ArticleEdge extends React.Component {
  constructor(props){
    super(props);
  }

  render() {
    return (
      <line x1={this.props.fromX} y1={this.props.fromY} x2={this.props.toX} y2={this.props.toY}
            style={{strokeWidth: 2, stroke: 'rgb(0,0,0)'}}
      />
    )
  }
}
import React from 'react';

export default function ArticleEdge({ fromX, fromY, toX, toY }) {
  return (
    <line x1={fromX} y1={fromY} x2={toX} y2={toY} style={{ strokeWidth: 2, stroke: 'rgb(0,0,0)' }} />
  );
}

ArticleEdge.propTypes = {
  fromX: React.PropTypes.number.isRequired,
  fromY: React.PropTypes.number.isRequired,
  toX: React.PropTypes.number.isRequired,
  toY: React.PropTypes.number.isRequired,
};

Add react proptypes to article edge
Add react proptypes to article edge
