content: import React from 'react';
  import { Button } from 'react-bootstrap';
  
  export default class WordBlock extends React.Component {
  
    constructor(props) {
      super(props);
      
    }
  
    onClick(){
      msg = new SpeechSynthesisUtterance(this.props.word);
      msg.rate = 0.8;
      speechSynthesis.speak(msg);
    }
  
    render(){
      return (
          <Button className="word-button" onClick={this.onClick.bind(this)}>{this.props.word}</Button>
      )
  
    }
  
  }
  
  
  
  WordBlock.propTypes = {
    word: React.PropTypes.string,
  };
  