Next.js: Update `_app.js` readme to explain `Component` and `Container`

Created on 12 May 2018  路  9Comments  路  Source: vercel/next.js

Currently it doesn't explain what Component and Container do, and what props they take, if any.

4145

documentation

Most helpful comment

Has there been any progress on this? I don't see a good explanation here: https://github.com/zeit/next.js/#custom-app

All 9 comments

馃憤

Has there been any progress on this? I don't see a good explanation here: https://github.com/zeit/next.js/#custom-app

any update to this?

Any news?

It's been more than a one year, would you mind adding an explanation? thanks!

Im starting to learn react and next. And I am also curios about this. I hope this gets updated.

Thanks!

It use to handle scrolling to hashes. This has been moved up the tree meaning is no longer needed to do this.
https://github.com/zeit/next.js/blob/master/errors/app-container-deprecated.md

Only the Component part is still relevant.

  • Component is the page component
  • pageProps are the properties for the page component

@lfades already got this covered in his docs updates that will be out soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timneutkens picture timneutkens  路  3Comments

swrdfish picture swrdfish  路  3Comments

havefive picture havefive  路  3Comments

renatorib picture renatorib  路  3Comments

ghost picture ghost  路  3Comments