Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for implementation of more simple and expressive lists #9

Open
Tibz-Dankan opened this issue Nov 7, 2024 · 1 comment
Open

Comments

@Tibz-Dankan
Copy link

export const someComponent = () => {
  const programmers = [
    {
      name: "John Doe",
      language: "Golang",
    },
    {
      name: "Alice Mary",
      language: "Python",
    },
  ];

  const UI = html`
    <div>
      <div>
        ${programmers.map((programmer) => {
          return html`
            ${ProgrammerCard({
              name: programmer.name,
              language: programmer.language,
            })}
          `;
        })}
      </div>
    </div>
  `;

  return UI;
};

If we can achieve some of that kind when it comes to rendering lists it will be very powerful.

@Bona96
Copy link

Bona96 commented Nov 11, 2024

This is a good suggestions, it looks neat and straight to the point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants