rajdee / posthtml-bem

BEM-style syntax plugin for PostHTML postprocessor
MIT License
80 stars 5 forks source link

posthtml-bem for JSX #16

Open 0xMarkian opened 8 years ago

0xMarkian commented 8 years ago

What about jsx support?

rajdee commented 8 years ago

What do you mean? Should it converted from the jsx with custom attributes to the jsx with classNames?

0xMarkian commented 8 years ago

@rajdee Yep, exactly

rajdee commented 8 years ago

I suppose it will not work with Post HTML, because jsx hasn't a valid HTML/XML syntax. I mean imports, lifecycle methods, render, etc You can use ReBEM for these manipulations

rajdee commented 8 years ago

I can try to write a babel plugin for transformation jsx with custom BEM attributes

0xMarkian commented 8 years ago

@rajdee That would be great. Anything I can do to help?