next-update-state-value
Update state value for react.
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.