@startupjs/babel-plugin-react-pug-classnames

[react-pug] Transform className property using BEM classnames-like function

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@startupjs/babel-plugin-react-pug-classnames
85380.47.0a month ago2 years agoMinified + gzip package size for @startupjs/babel-plugin-react-pug-classnames in KB

Readme

@startupjs/babel-plugin-react-pug-classnames
Allows to properly parse sub-components in pug:
Card
  Card.Header.top(styleName={ active } title='Title')
    | Hello world
  Card.Content.middle
  Card.Footer(buttons=['Confirm', 'Cancel'])

Licence

MIT