# Conditional rendering or duplicate page?

**URL:** <https://community.weweb.io/t/conditional-rendering-or-duplicate-page/8452>\
**Category:** Tips and Hacks\
**Created:** [May 4, 2024, 4:30pm UTC](https://community.weweb.io/t/conditional-rendering-or-duplicate-page/8452 "2024-05-04T16:30:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Corner](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@Corner](https://community.weweb.io/u/Corner)\
**Post date:** [May 4, 2024, 4:30pm UTC](https://community.weweb.io/t/conditional-rendering-or-duplicate-page/8452/1 "2024-05-04T16:30:16Z")

</div>

Hello there,  
In the app I’m building, two types of users will use it : admin and regular.  
The nav bar will contains different elements between the two profiles.  
Using the conditional rendering could surely work but I would have to create all the different tabs from the two profiles gathered, and then create my rendering rules, but I don’t think I will have the room in the nav bar.  
Is it ok to duplicate the page (something like “Dashboard - Admin” and “Dashboard - Regular”) or I should really use the conditional rendering ?  
Thank you !

---

<div class="post-metadata">

**Author:** ![Corner](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@Corner](https://community.weweb.io/u/Corner)\
**Post date:** [May 8, 2024, 5:59pm UTC](https://community.weweb.io/t/conditional-rendering-or-duplicate-page/8452/2 "2024-05-08T17:59:22Z")

</div>

Here is the solution i’ve found if someone’s wondering the same : I just duplicated the same section in the same page, and added a conditionnal rendering so that each section matches a user profile type
