Component Strategy
Document
-
A document logic ( <script> ) is executed on the client side but is not aInkComponent , which means it cannot be re-rendered and does not have access tothis context. -
A document props() are the server props passed down to the client. -
A document does not have access to NodeJS functionality. So things like fs are not available.