lit / lit/lit.dev

Include example of map directive on the Lists page

Open
#951 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Description

Ran into a situation today where I was trying to figure out how to work with rendering values in a `Set` by looking at https://lit.dev/docs/templates/lists/ but was not able to find the answer I was ultimately looking for which was the [map directive](https://lit.dev/docs/templates/directives/#map)

By including additional examples on the Working with Lists page to include this it will hopefully help others avoid running into the same issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Working with Lists page at https://lit.dev/docs/templates/lists/ and compare it with the linked map directive documentation. Add an example showing how to render values from a Set with the map directive, then verify that the Lists page clearly explains this use case.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.