Multiple props rendering

Other topics

render multiple variables

For rendering multiple props or variables we can use ``.

  render() {
    let firstName = 'test';
    let lastName = 'name';
    return (
      <View style={styles.container}>
        <Text>{`${firstName} ${lastName}` } </Text>
      </View>
    );
  }

Output: test name

Contributors

Topic Id: 10781

Example Ids: 32316

This site is not affiliated with any of the contributors.