diegohaz / diegohaz/arc

[redux] Containers and presenting information differently

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
289
PR merge metrics
No merged PRs in 30d

Description

I am intrigued to hear how other people are handling this situation:

I have some data, lets call it users. In one place in my application I want to display the users as a list. I.E.

```
- user1
- user2
- user3
```

I created a Container that reads the data and renders a UserList component. Now I have another place in the same application that I want to display users in a table. I.E.

```
| id | name | other |
---------------------
| 1 | user1 | xxxxx |
| 2 | user2 | xxxxx |
| 3 | user3 | xxxxx |
```

My question. Are people really creating another container just to render a UserTable component? Or are they making a "UserDisplay" component that is somewhat generic that can render the list of users differently (in this case as a list and as a table)?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.