@automattic/simple-components
Version:
React components, as used on WordPress.com
23 lines (16 loc) • 392 B
Markdown
Main (jsx)
==========
Component used to declare the main area of any given section — it's the main wrapper that gets render first inside `#primary`.
#### How to use:
```js
import Main from 'components/main';
render() {
return (
<Main (optional) className="your-component">
Your section content...
</Main>
);
}
```
#### Props
* `className`: Add your own class to the wrapper.