react-packer

0.1.0 • Public • Published

React Packer

NPM

Packer is a React component, making bin packing layout.

Currently it is not perfect.

Usage

See examples/ or:

var Packer = require('react-packer');
 
var App = React.createClass({
    render: function () {
        return (
            <Packer>
                <Packer />
                <Packer className='item' />
                <Packer>
                    <p>Hello World</p>
                </Packer>
            </Packer>
        );
    }
});
 
React.render(
    <App />,
    document.body
)

Notice: Multiple Packer components must be enclosed in an element such as div or another Packer react element.

Install

npm install react-packer --save

License

The MIT License, See LICENSE.txt file.


Copyright (c) 2015, Towry Wang

Readme

Keywords

Package Sidebar

Install

npm i react-packer

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • towry