Skip to content

Commit

Permalink
Merge pull request #409 from CodeYourFuture/content/js3/reorder-revis…
Browse files Browse the repository at this point in the history
…e1-2

Copyedits JS3 - 2 replace foreach with spread array
  • Loading branch information
Dedekind561 authored Dec 5, 2023
2 parents f4ffe6b + f834f15 commit 4d0914d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/js3/blocks/re-rendering-ui/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Recalling our card function, let's see how we can update the UI with the latest
const render = (container, list) => {
container.textContent = ""; // clear the view
const cards = list.map((film) => createCard(template, film));
cards.forEach((card) => container.appendChild(card));
container.append(...cards);
};
```

Expand Down
2 changes: 1 addition & 1 deletion static/filterFilms.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h3></h3>
const render = (container, list) => {
container.textContent = "";
const cards = list.map((film) => createCard(template, film));
cards.forEach((card) => container.appendChild(card));
container.append(...cards);
};

// Initial render
Expand Down

0 comments on commit 4d0914d

Please sign in to comment.