replaceState

replaceState

1
2
3
4
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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.