replaceState

replaceState

void replaceState(
  object nextState,
  [function callback]
)

Like setState() but deletes any pre-existing state keys that are not in nextState.

This method is not available on ES6 class components that extend React.Component. It may be removed entirely in a future version of React.

doc_React
2016-06-23 03:32:25
Comments
Leave a Comment

Please login to continue.