1.0.6 • Published 8 years ago

old-state v1.0.6

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

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

Installation

npm install --save old-state

Usage

import React, { Component } from 'react'
import oldState from 'old-state'

@oldState
class SomeComponent extends Component {
  render() {
    let previousState = this.oldState
    let currentState = this.state
    // ...
  }
}
1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago