mercredi 27 mars 2019

How do i test if a variable has a react component as value?

I have a variable which gets dynamically assigned a React component based on a condition is true or false. if(isValid) {icon = } else {icon =

how do i test for expected value of icon is one component or other?

Aucun commentaire:

Enregistrer un commentaire