I'm using Next.js for my React application because it has server side rendering. As I checked by log, both methods ComponentWillMount and getInitialProps both run on the server side. Are there any differences between those methods?
When should I run in ComponentWillMount and when should I run in getInitialProps?
I don't see Next.js mentions about this thing.