This package has been deprecated

Author message:

move to @the-/util-ui ( https://github.com/the-labo/the/tree/master/packages/util-ui#readme )

the-component-util

3.0.23 • Public • Published

the-component-util

Build Status npm Version JS Standard

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.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-component-util

Weekly Downloads

15

Version

3.0.23

License

MIT

Unpacked Size

112 kB

Total Files

70

Last publish

Collaborators

  • okunishinishi