title: Parsing error: Unexpected reserved word 'static'
body: <p>I'm trying to add context to this class component however I am thrown this error.</p>
  <p>Do I have a syntax issue or is this a bug?</p>
  <p>I'm using it in another component and it is working just fine.</p>
  <pre><code>import React, { Component } from 'react'
  import { Avatar, Button, CssBaseline, FormControl, FormControlLabel, Checkbox, Input, InputLabel, Paper, Typography, MenuItem, Select } from '@material-ui/core'
  import { LockOutlined } from '@material-ui/icons'
  import { withStyles } from '@material-ui/core/styles'
  import { LanguageContext } from './contexts/LanguageContext'
  import styles from './styles/FormStyles'
  
  class Form extends Component {
  
    render() {
      static contextType = LanguageContext
      const { classes } = this.props
  
  
  
  return (
    &lt;main className={classes.main} &gt;
      &lt;Paper className={classes.paper}&gt;
        &lt;Avatar className={classes.avatar}&gt;
          &lt;LockOutlined /&gt;
        &lt;/Avatar&gt;
        &lt;Typography variant='h5'&gt;Sign In&lt;/Typography&gt;
        &lt;Select value='english'&gt;
          &lt;MenuItem value='english'&gt;English&lt;/MenuItem&gt;
          &lt;MenuItem value='french'&gt;French&lt;/MenuItem&gt;
          &lt;MenuItem value='spanish'&gt;Spanish&lt;/MenuItem&gt;
        &lt;/Select&gt;
        &lt;form className={classes.form}&gt;
          &lt;FormControl margin='normal' required fullWidth&gt;
            &lt;InputLabel htmlFor='email'&gt;Email&lt;/InputLabel&gt;
            &lt;Input id='email' name='email' autoFocus /&gt;
          &lt;/FormControl&gt;
          &lt;FormControl margin='normal' required fullWidth&gt;
            &lt;InputLabel htmlFor='password'&gt;Password&lt;/InputLabel&gt;
            &lt;Input id='password' name='password' autoFocus /&gt;
          &lt;/FormControl&gt;
          &lt;FormControlLabel control={&lt;Checkbox color='primary' /&gt;} label='Remember Me'&gt;&lt;/FormControlLabel&gt;
          &lt;Button variant='contained' type='submit' fullWidth color='primary' className={classes.submit}&gt;Sign In&lt;/Button&gt;
        &lt;/form&gt;
      &lt;/Paper&gt;
    &lt;/main&gt;
  )
    }
  }
  
  export default withStyles(styles)(Form)
  </code></pre>