-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/CPW-06 #12
feature/CPW-06 #12
Conversation
Tenés que pasar el archivo a TS, ya que eso estamos usando, además que el componente debe ser funcional y no de clase |
pages/_document.js
Outdated
@@ -0,0 +1,22 @@ | |||
import Document, { Html, Head, Main, NextScript } from 'next/document' | |||
class MyDocument extends Document { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convertir a componente funcional, ver desarrollo
pages/_document.js
Outdated
@@ -0,0 +1,22 @@ | |||
import Document, { Html, Head, Main, NextScript } from 'next/document' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convertir a archivo tsx
pages/_document.tsx
Outdated
@@ -0,0 +1,13 @@ | |||
import { Html, Head, Main, NextScript } from 'next/document' | |||
|
|||
export default function Document() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convertir a componente funcional, pero con sintaxis de arrow function
const Document = () => (
// Etiquetas aca
)
No description provided.