Which function in React.js is invoked before a component gets its props reassigned ?
(A) componentWillRecieveProps()
(B) componentWillStopProps()
(C) componentWillControlProps()
(D) componentRecieveProps()
Answer: (A)
Explanation: The componentWillRecieveProps() is a function in React.js which is independent of States. It is invoked when props are assigned.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Recommended Articles