Newton's Principia Mathematica

    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

    Keywords

    Install

    npm i apeman-react-mixin-resize

    DownloadsWeekly Downloads

    8

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • okunishinishi