Abhi Aiyer
1 min readFeb 4, 2017

--

Thanks for the questions

I usually do this when I don’t really want to deal with naming new components. I get annoyed with building components up with variables because I always end up with names like PeopleList, PeopleListBase PeopleListBaseComponent, you see where that rabbit hole goes?

Usually my rule of thumb is single component files

`export default PeopleContainer(PeopleList)` because my component here is a PeopleList that is being enhanced by a container. But at the end of the day its still the entity that is a PeopleList.

hahah does that make sense? i know its super meta.

So the whole let PeopleList and reassigning it is just out of laziness on my part. I didn’t want to deal with making another file and wanted to keep the whole tutorial in one

You are correct that we are making a smart component out of a visual component and container components. You can def write this as const = …

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)

Write a response