content: import React from 'react';
  
  const PitSpeed = React.createClass({
      propTypes: {
          speed: React.PropTypes.number
      },
  
      shouldComponentUpdate: function(nextProps, nextState) {
          return this.normalizeSpeed(this.props.speed) !== this.normalizeSpeed(nextProps.speed);
      },
  
      normalizeSpeed: function(speed) {
          if (null === speed || 'undefined' === typeof speed) {
              return '-';
          }
  
          return Math.floor(speed * 3.6).toFixed(0);
      },
  
      render: function() {
          const speed = this.normalizeSpeed(this.props.speed);
  
          return (
              <div id="speed">
                  <span className="label">
                     Pit Speed
                  </span>
                  <span className="value">
                      {speed}
                  </span>
              </div>
          );
      }
  });
  
  export default PitSpeed;
  