@feizheng/next-update-state-value

1.0.1 • Public • Published

next-update-state-value

Update state value for react.

version license size download

installation

npm install -S @feizheng/next-update-state-value

usage

import '@feizheng/next-update-state-value';

class ReactList extends React.Component{
  //...
  shouldComponentUpdate(inProps){
    nx.updateStateValue(this, 'value', { props: inProps });
    return true;
  }
  //...
}

license

Code released under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @feizheng/next-update-state-value

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

5.09 kB

Total Files

5

Last publish

Collaborators

  • afeiship