text: import React, { Component } from 'react';
  
  class Content extends Component {
  
      constructor() {
          super()
          this.count = 1;
      }
  
      componentWillReceiveProps() {
          this.count = 1;
      }
  
  
      renderLabel(data) {
          return [
              <div className="card__content__label">{this.count++}</div>,
              <b>{data}</b>
          ]
      }
  
      render() {
          const data = this.props.data;
          // this.props.data.map((object,index) => {
          //     console.log(index);
          // })
          // <span>{data.indexOf(data.color)}</span>
          return (
              <div className="card__content">
                  <p>
                      Ladies and gentlemen, this is {this.renderLabel(data.color)} Barber, your sportscaster, bringing you the last inning of the game between the Cleveland {this.renderLabel(data.pluralNoun)} and the {this.renderLabel(data.adjectiveOne)} Yankees. {this.renderLabel(data.celebOne)} is pitching for the Yankees. Here's the pitch! It's a low {this.renderLabel(data.adjectiveTwo)} ball that just cuts the inside of the {this.renderLabel(data.nounOne)} for a strike. That makes the count {this.renderLabel(data.numberOne)} strikes and {this.renderLabel(data.numberTwo)} balls. Now here's the next pitch. The batter swings and connects. It's a long, high {this.renderLabel(data.nounTwo)} out to {this.renderLabel(data.adjectiveThree)} field. But {this.renderLabel(data.celebTwo)} is coming up fast and has it for the second out. The next batter up is {this.renderLabel(data.celebThree)}, the Cleveland {this.renderLabel(data.adjectiveFour)}-stop. Here's the pitch... and it's hit... a short ground ball to third {this.renderLabel(data.nounThree)}. {this.renderLabel(data.celebFour)} scoops it up and throws it to first base for an out, and the game is over. And the Yankees move into second place in the {this.renderLabel(data.adjectiveFive)} League!  
                  </p>
              </div>
          )
      }
  }
  
  export default Content;
  