diff --git a/docs/data/material/components/tooltips/tooltips.md b/docs/data/material/components/tooltips/tooltips.md index 4cedae5a300099..2b60f71e1e1dc4 100644 --- a/docs/data/material/components/tooltips/tooltips.md +++ b/docs/data/material/components/tooltips/tooltips.md @@ -71,8 +71,6 @@ const MyComponent = React.forwardRef(function MyComponent(props, ref) { ; ``` -You can find a similar concept in the [wrapping components](/material-ui/guides/composition/#wrapping-components) guide. - If using a class component as a child, you'll also need to ensure that the ref is forwarded to the underlying DOM element. (A ref to the class component itself will not work.) ```jsx diff --git a/docs/data/material/guides/composition/composition.md b/docs/data/material/guides/composition/composition.md index f6aba55198155b..59274283ed6b7d 100644 --- a/docs/data/material/guides/composition/composition.md +++ b/docs/data/material/guides/composition/composition.md @@ -26,106 +26,44 @@ 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 `