Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- renderCards() {
- const cardsList = []
- _.forOwn(this.state.cards, function(value, key) {
- value.map((card) => {
- cardsList.push(card);
- });
- });
- return cardsList.map((card) => {
- return <li key={card.cardId}>{card.name}</li>
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement