---
title: "Discussion on \"React Slots: Dynamic Sidebars and Headers Without the Mess\" | Hashnode"
description: "Discussion on \"React Slots: Dynamic Sidebars and Headers Without the Mess\". The Problem\nYou have a layout with a sidebar. Different pages need different sidebar content. The obvious solutions all have tradeoffs:\nProp drilling: Pass sidebar content up through every layer. Verbose, brittle.\nGlobal state: Store sidebar config i..."
url: "https://hashnode.com/posts/react-slots-dynamic-sidebars-and-headers-without-the-mess/697a1a36fac17ac5852ae2c7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [React Slots: Dynamic Sidebars and Headers Without the Mess](https://eng.coloop.ai/react-slots-dynamic-sidebars-and-headers-without-the-mess?utm_source=hashnode&utm_medium=feed)

The Problem You have a layout with a sidebar. Different pages need different sidebar content. The obvious solutions all have tradeoffs: Prop drilling: Pass sidebar content up through every layer. Verbose, brittle. Global state: Store sidebar config i...

Jan 28 · 3 min read · eng.coloop.ai  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#frontend](https://hashnode.com/tag/frontend)

## Written by

[Adrien Wald](https://hashnode.com/@mrlowlevel)

@mrlowlevel

  
[View profile](https://hashnode.com/@mrlowlevel)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
