Commit 03cad7cb authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by GitHub

Fix some errors in README.

parent 5a650d74
......@@ -236,8 +236,10 @@ For the initial page load, `getInitialProps` will execute on the server only. `g
_Note: `getInitialProps` can **not** be used in children components. Only in `pages`._
<br/>
> If you are using some server only modules inside `getInitialProps`, make sure to [import them properly](https://arunoda.me/blog/ssr-and-server-only-modules).
> Otherwise, it'll slow down your app.
<br/>
You can also define the `getInitialProps` lifecycle method for stateless components:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment