You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using componentWillRecieveProps when adding question
when adding question we send a new props to question Card component, so we need to run the function componentWillRecieveProps(props), to set the new props in the state
the new props which contain the new values of questions
The text was updated successfully, but these errors were encountered:
componentWillReceiveProps will be deprecated in the next React version. This means it can lead to breaking changes or unexpected problems. Check out this article.
getDerivedStateFromProps Is the one to be safely used.
Using componentWillRecieveProps when adding question
when adding question we send a new props to question Card component, so we need to run the function componentWillRecieveProps(props), to set the new props in the state
the new props which contain the new values of questions
The text was updated successfully, but these errors were encountered: