A

Admin • 828.03K Points
Coach

Q. What will happen if a React component returns false in its render method?

  • (A) It will render nothing
  • (B) It will throw an error
  • (C) It will render 'false' text
  • (D) It will crash the app
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
Returning false or null means nothing is rendered.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.