0.1.0 • Published 10 years ago
react-packer v0.1.0
React Packer
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
0.1.0
10 years ago