react-layer-mixin
v0.3.0
Published
React mixin for building layered components
Downloads
4
Maintainers
Readme
react-layer-mixin
React mixin for building Layered components
Usage
var React = require('react');
var LayerMixin = require('react-layer-mixin');
var Component = React.createClass({
mixins: [LayerMixin],
renderLayer: function () {
return <div>Content of layer</div>
},
render: function () {
return <div>Content of regular component</div>
}
})
Code for this mixin is taken from react-components. Seperate npm package is created for ease of use.