Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// App.js
...
<div className={styles.preferences}>
{options.map((item, index) => {
return (
<ToggleRow option={item} index={index} /> // pass index to component
);
})}
</div>
</div>
</main>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment