UNPKG

@wordpress/components

Version:
30 lines (19 loc) • 647 B
# View <p class="callout callout-alert">This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.</p> `View` is a core component that renders everything in the library. It is the principle component in the entire library. **Everything** is a `View`, and a `View` is **everything**. ## Usage ```jsx import { __experimentalView as View } from '@wordpress/components'; function Example() { return ( <View> <span>Code is Poetry</span> </View> ); } ``` ## Props ### as **Type**: `string`,`E` Render the component as another React Component or HTML Element.