from Hacker News

RSJS: Reasonable System for JavaScript Structure

by flexterra on 4/21/23, 2:54 PM with 1 comments

  • by rektide on 4/21/23, 3:41 PM

    Neat attempt here.

    I like a lot that they say "Use data attributes [not classes]", then the next rule is what to do if you don't agree, "if you do don't like attributes & prefer classes;" "Don't overload classes". Keep style classes & regular classes separate. Nice comprehensive thinking, & good advice either way.

    Using meta tags for bootstrap is also a cool idea to stay declarative that I'd never considered before.