Skip to content

Thought on quick start #1134

Open
Open
@samselikoff

Description

@samselikoff

The first component we make is a <PeopleList />, but the main motivation for this is reuse (as the help text describes). But then we don't reuse the component.

What if the example was something like a <PersonCard>, so the user could see the component being reused?

The refactor would be

  <h2>List of Scientists</h2>

  <ul>
    {{#each @model as |scientist|}}
-     <li>{{scientist}}</li>
+     <PersonCard @person={{@scientist}} />
    {{/each}}
  </ul>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions