Conditional render - UI with mode

Can anyone point to a repo / project which exemplifies a React code pattern for a UI which has 2 modes. For example, admin user and user. In such a UI the admin can configure the things within the UI, and these are seen by the user. Here the UI is very similar for both roles, but the behaviour and controls are different. Simply filling the code with conditions to render / not render various controls is too simplistic, messy and hard to maintain. What I'm looking for is something like a page structure into which two sets of behaviours are imposed.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server