Created
May 4, 2020 00:19
-
-
Save marshallmurphy/8a247f0e41f2ad2ca5664150f076d834 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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