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

[redux] Containers and presenting information differently #328

Open
jwkellyiii opened this issue Nov 28, 2017 · 0 comments
Open

[redux] Containers and presenting information differently #328

jwkellyiii opened this issue Nov 28, 2017 · 0 comments

Comments

@jwkellyiii
Copy link

jwkellyiii commented Nov 28, 2017

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!

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

1 participant