react js component
setState(function|object nextState, [function callback])
-----
setState({myKey:'my new value'})
setState(function(prevState, currentProps){
return {myInteger:prevState.myInteger+1};
});
setState(function|object nextState, [function callback])
-----
setState({myKey:'my new value'})
setState(function(prevState, currentProps){
return {myInteger:prevState.myInteger+1};
});
No comments:
Post a Comment