with-bem
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

HOC for React that simplifies BEM usage

This project is highly inspired by cn-decorator

However cn-decorator has some disadvantages:

  • it doesn't support Typescript
  • it does monkey patching for component's render method that can not be considered as "react way"

withBEM is free from this disadvantages. It is fully compatible with Typescript and it works as react HOC passing bem object as a property.

Readme

Keywords

Package Sidebar

Install

npm i with-bem

Weekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

12 kB

Total Files

9

Last publish

Collaborators

  • breakfast_included