title: NextJS: getInitialProps method
body: <p>Working with NextJS and saw an example of a page:</p>
  
  <pre><code>class IndexPage extends Component {
    static async getInitialProps(context) {
      return {};
    }
    render() {
      return &lt;div&gt;hello world&lt;/div&gt;;
    }
  }
  export default withRouter(IndexPage);
  </code></pre>
  
  <p>What exactly does the getInitialProps method in NextJS?</p>