Question · Next.js course · Module 2: Routing and Layouts
When to Use template.tsx
What is the template.tsx file best suited for instead of layout.tsx?
Answer options
- Entry animations and logging page views on every navigation
- State that should survive navigation between pages
- Defining the html and body tags of the whole app
- Handling rendering errors of a segment
Show the answer
Correct answer:
- Entry animations and logging page views on every navigation