samedi 31 mars 2018

React: How to conditionally render?

I have three components A, B & C.

I have two flags showA & showB.

  • If ShowA and ShowB are false then render C.
  • If ShowA is true only then render A.
  • If showB is true only then render B.

How do i achieve this?

Aucun commentaire:

Enregistrer un commentaire