Licence
MIT
Version
3.0.23
Deps
8
Size
109 kB
Vulns
1
Weekly
0
DeprecatedThis package is deprecated
the-component-util
Utility for the-components
Installation
$ npm install the-component-util --save
Usage
'use strict'
import React from 'react'
import classnames from 'classnames'
import { htmlAttributesFor } from 'the-component-util'
class ExampleComponent extends React.PureComponent {
render () {
const s = this
const { props } = s
return (
<div { ...htmlAttributesFor(props, { except: 'className' }) }
className={ classnames('example', props.className)}
>
This is the example!
</div>
)
}
}
export default ExampleComponent
License
This software is released under the MIT License.