0.0.6 • Published 8 years ago

human-component v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

human-component

A human readable version of React Components

Convert tag names

const Human = require('human-component');

const div = Human.from('div');
const span = Human.from('span');

Require React.Component

const Human = require('human-component');

const Paper = Human.from('material-ui/Paper');
const TableRow = Human.require(module, 'material-ui/Table', 'TableRow');

Render tree

class MyComponent extends React.Component {
  
  render() {
    return (
      Paper.el({width: 100},
        div.el(null,
          span.el(null, 'Lorem'),
          span.el(null, 'Ipsum')
        ),
      )
    );
  }
}
0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago