import React, { Component } from 'react'; export default class VolumeIcon extends Component { constructor(props) { super(props); this.toggleSound = this.toggleSound.bind(this); } toggleSound() { this.props.parent.setState( {playSound: !this.props.parent.state.playSound} ) } render() { let on = this.props.parent.state.playSound; return
} }