Answers for "how to use if else inside render in react native"

0

if statement in react native

renderConditionalText() {
    if (this.state.isSignUp) {
        return <Text> Sign Up </Text>;
    }
     return <Text> Forgot Password </Text>; 
}
Posted by: Guest on April-08-2021
0

if else react render in jsc

const functionalComponent=()=> {

  return (
    <div>{
  			  props.isFeatured ? (
                        <div className="featured_ovelay_icon">lol</div>

                    ) : ("")
 			}
    </div>
  );
}
Posted by: Guest on May-25-2021

Code answers related to "how to use if else inside render in react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language