Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akiran/react-layer-mixin

React mixin for building Layered components
https://github.com/akiran/react-layer-mixin

Last synced: 3 months ago
JSON representation

React mixin for building Layered components

Awesome Lists containing this project

README

        

# react-layer-mixin

React mixin for building Layered components

### Usage
```javascript
var React = require('react');
var LayerMixin = require('react-layer-mixin');

var Component = React.createClass({
mixins: [LayerMixin],
renderLayer: function () {
return

Content of layer

},
render: function () {
return
Content of regular component

}
})

```

Code for this mixin is taken from [react-components](https://github.com/Khan/react-components/blob/master/js/layered-component-mixin.jsx).
Seperate npm package is created for ease of use.