0.9.2 • Published 9 years ago

react-array-element v0.9.2

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

react-array-element

JSX:

<div className="comment">
  <h2 className="commentAuthor">
      {this.props.author}
  </h2>
</div>

react-array-element:

import $ from 'react-array-element'

$(".comment",
   ["h2.commentAuthor", this.props.author])

JSX:

<ComponentA id="email-input"
  style = {style} onClick = {this.onClick} >
  <input
    type="email"
    onKeyUp={ this.onKeyUp } />
</ComponentA>

react-array-element:

$("ComponentA#email-input",
  {style, onClick:this.onClick},
  ["input", {
    type:"email",
    onKeyUp: this.onKeyUp }])

No more div,id,className,{},closing tag, just vanilla array.

0.9.2

9 years ago

0.9.1

9 years ago

0.9.0

9 years ago