---
title: "Discussion on \"Prevent unnecessary re-render with React composition\" | Hashnode"
description: "Discussion on \"Prevent unnecessary re-render with React composition\". React encourages people to use special prop children for the container which has unknown children components. For example, Sidebar or Dialog. And avoid component inheritance as much as you can. React doc says it.\nEspecially, component composition hel..."
url: "https://hashnode.com/posts/prevent-unnecessary-re-render-with-react-composition/632e95653ac18d0d78a01323"
---

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

Discussion

# [Prevent unnecessary re-render with React composition](https://quan-ng.hashnode.dev/prevent-unnecessary-re-render-with-react-composition?utm_source=hashnode&utm_medium=feed)

React encourages people to use special prop children for the container which has unknown children components. For example, Sidebar or Dialog. And avoid component inheritance as much as you can. React doc says it. Especially, component composition hel...

Sep 24, 2022 · 2 min read · quan-ng.hashnode.dev  
Updated Mar 13, 2023  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#performance](https://hashnode.com/tag/performance)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#components](https://hashnode.com/tag/components)

## Written by

[Quan Nguyen](https://hashnode.com/@quanng)

@quanng

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

Human learning

🇻🇳

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
