From 66d330ad6d80571264e2b6046b08ce5632768c33 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Mon, 12 Aug 2024 10:58:58 +0530 Subject: [PATCH] fix component prop section in Composition guide --- .../guides/composition/composition.md | 101 ++---------------- 1 file changed, 11 insertions(+), 90 deletions(-) diff --git a/docs/data/material/guides/composition/composition.md b/docs/data/material/guides/composition/composition.md index f6aba55198155b..51f5e5a0aa3d2f 100644 --- a/docs/data/material/guides/composition/composition.md +++ b/docs/data/material/guides/composition/composition.md @@ -26,105 +26,26 @@ WrappedIcon.muiName = Icon.muiName; MaterialĀ UI allows you to change the root element that will be rendered via a prop called `component`. -### How does it work? - -The custom component will be rendered by MaterialĀ UI like this: - -```js -return React.createElement(props.component, props); -``` - For example, by default a `List` component will render a `