Home / Report Question

Q. How do you prevent a component from re-rendering in React?
  • A. By returning null in render
  • B. By using React.memo
  • C. By avoiding JSX
  • D. By not using useState