Using Pure Components

Which of the following components declared in React v17.0.1 is pure?

//Function1 
function sub(a, b) {
 return a - b;
}

//Function2 
function del(a, b) {
 at.total -= b;
}
Options
  1. Function1
  2. Function2
  3. Both Function1 and Function2
  4. Neither Function1 nor Function2

Related Posts

Close Bitnami banner
Bitnami