What are "as" props in semantic-ui-react components?

Viewed 3848

as is defined as An element type to render as (string or function). in the most of the components in semantic-UI-react. What does that mean?

My understanding is that it somehow changes the component in whatever is as is.

Example:

https://react.semantic-ui.com/modules/sidebar has Sidebar as={Menu} then the children are <Menu.Item name='...'> without typical <Menu/> that is required to start the menu.

1 Answers
Related