(props)
| 35 | }; |
| 36 | |
| 37 | constructor(props) { |
| 38 | super(props); |
| 39 | this.state = { |
| 40 | chosen: false, |
| 41 | syntax: this.props.es7.trim().length && 'es7' || |
| 42 | this.props.es6.trim().length && 'es6' || |
| 43 | this.props.es5.trim().length && 'es5', |
| 44 | |
| 45 | }; |
| 46 | } |
| 47 | |
| 48 | componentDidMount() { |
| 49 | this.unsubscribe = subscribe(this.handlePreferredSyntaxChange.bind(this)); |
nothing calls this directly
no outgoing calls
no test coverage detected