@jswork/next-update-state-value

1.0.0 • Public • Published

next-update-state-value

Update state value for react.

version license size download

installation

npm install -S @jswork/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.

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

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

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.12 kB

    Total Files

    5

    Last publish

    Collaborators

    • afeiship