I nest child components in my main_layout component like this:
<div style={styles.contentContainer}>
{content()}
</div>
I need to pass a function from the main_layout component to the child component. What is the correct syntax for this?
I nest child components in my main_layout component like this:
<div style={styles.contentContainer}>
{content()}
</div>
I need to pass a function from the main_layout component to the child component. What is the correct syntax for this?