jsx / JSX

JSX - a faster, safer, easier JavaScript
http://jsx.github.io/
MIT License
1.46k stars 102 forks source link

Proposal: faster way to id and classes #358

Closed rafikalid closed 1 year ago

rafikalid commented 1 year ago

Acutally we add id and classes like this: <div id="myId" className="myClass1 myClass2" anotherAttr={...} > ... </div>

A faster and more convenient method will be: <div#myId.myClass1.myClass2 anotherAttr={...} >... </div>

rafikalid commented 1 year ago

The issue will be with the react syntax of nested objects like <Provider.container >.... </Provider.container> :/

rafikalid commented 1 year ago

This is an other improvement:

rafikalid commented 1 year ago

Sorry, wrong repo :D