the-root
Root element of the-components
Installation
$ npm install the-root --save
Usage
'use strict'
import React from 'react'
import { TheRoot, TheRootStyle } from 'the-root'
class ExampleComponent extends React.PureComponent {
render () {
return (
<div>
<TheRootStyle/>
<TheRoot id='my-component'
>
</TheRoot>
</div>
)
}
}
export default ExampleComponent
Components
TheRoot
Root element of the-components
Props
Name | Type | Description | Default |
---|---|---|---|
role |
'application' |
TheRootStyle
Style for TheRoot
Props
Name | Type | Description | Default |
---|---|---|---|
options |
object | Style options | {} |
License
This software is released under the MIT License.