apeman-react-mixin-resize

1.0.3 • Public • Published

apeman-react-mixin-resize

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for resize mixins

Installation

$ npm install apeman-react-mixin-resize --save

Usage

#!/usr/bin/env node
 
'use strict'
 
import React from 'react'
import {ApResizeMixin} from 'apeman-react-mixin-resize'
 
// Define own component with the mixin
const ExampleComponent = React.createClass({
  mixins: [
    // Add listener to resize event.
    ApResizeMixin
  ],
  render () {
    return (
      <div>{ /* ... */ }</div>
    )
  },
 
  // --------------------
  // For ApResizeMixin
  // --------------------
  windowDidResize () {
    // Called when window resized.
    /* ... */
  }
})
 

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i apeman-react-mixin-resize

Weekly Downloads

12

Version

1.0.3

License

MIT

Last publish

Collaborators

  • okunishinishi