Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/akiran/react-layer-mixin
- Owner: akiran
- License: mit
- Created: 2014-12-01T15:55:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-22T18:46:37.000Z (about 9 years ago)
- Last Synced: 2024-05-01T21:29:54.438Z (8 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 () {
returnContent of layer
},
render: function () {
returnContent 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.