Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
menu

Layout for a Route Group in NextJS

Let's talk about cases when a website is divided into several parts, for example, the main part and the admin panel. In this case, they are fundamentally different and we need a separate layout for each of the parts.

  • /app/
    • /(user)/
      • layout.jsx
    • /(admin)/
      • layout.jsx

Divide the site into two parts. Create a main layout for each of the parts.

↑
English▼
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline