@feizheng/next-update-state-value

Update state value for react.

Usage no npm install needed!

<script type="module">
  import feizhengNextUpdateStateValue from 'https://cdn.skypack.dev/@feizheng/next-update-state-value';
</script>

README

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.