1.0.6 • Published 9 years ago

old-props v1.0.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 years ago

Decorator for ReactJS components that saves the old properties before it gets updated.

Installation

npm install --save old-props

Usage

import React, { Component } from 'react'
import oldProps from 'old-props'

@oldProps
class SomeComponent extends Component {
  render() {
    let previousProps = this.oldProps
    let currentProps = this.props
    // ...
  }
}
1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago