1.0.1 • Published 4 years ago

@feizheng/next-update-state-value v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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.