class-bound-components

React components bound to class names. As simple as that.

MIT License

Downloads
14
Stars
5
Committers
2

Bot releases are hidden (Show)

class-bound-components - v2.0.0 – Functional Modifiers Latest Release

Published by janizde almost 4 years ago

Breaking: Modifiers extend, withVariants, withOptions and as have moved from being members of the components to being pure functions on either the imported classBound object or as named exports from class-bound-components

Example:

// Previously:
import classBound from 'class-bound-component';

const MyComponent = classBound('fooClassName');
const ExtendedComponent = MyComponent.extend('fooClassName');

// From v2.0.0 onwards:
import classBound, { extend } from 'class-bound-components';

const MyComponent = classBound('fooClassName');
const ExtendedComponent = extend(MyComponent, 'fooClassName');

// or alternatively
const ExtendedComponentAlt = classBound.extend(MyComponent, 'fooClassName');

Additional changes:

  • Symbol is not longer required to be present or polyfilled
class-bound-components - v1.1.0 – Ref Forwarding ⛓⏩

Published by janizde over 4 years ago

This release mainly adds support for automatic ref forwarding to intrinsic elements and wrapped ForwardRefExoticComponents. Furthermore some more extensive documentation on TypeScript and usage with CSS modules.

Package Rankings
Top 20.04% on Npmjs.org
Badges
Extracted from project README's
Build Status npm version Coverage Status