Menu
Sign In Search Podcasts Charts Entities Add Podcast API Pricing
Podcast Image

Chats with Kent C. Dodds

Jenn Creighton Chats With Kent About Avoiding An "Apropcolypse"

27 Nov 2019

Description

Jenn has been working with React since 0.13. She has a background in creative writing, and it melded well with React.One of her big early mistakes with React was focusing too hard on making components reusable. When you try to make your component one-hundred percent reusable, you end up with a massive stack of props. In our effort to make things reusable, we end up making it harder for ourselves and others.Sometimes it even makes sense to duplicate the component, change its name, and add your changes to it instead of adding more props to the existing component. Too many props on your component not only makes it hard to refactor but also difficult to even use.One of Jenn's rules for her codebase is that new engineers should be able to come in and get up to speed quickly. It is an overall rule that has to do with keeping the codebase consistent. Jenn puts rules in place like, "We consistently use this state management library." So if a person comes in, they aren't finding multiple ways of doing the same thing.HomeworkDocument it before you write your next component!ResourcesKent C. Dodds - When to break up a component into multiple componentsuseReactNYC MeetupGuest: Jenn CreightonTwitter: @gurlcodeNotist: jenncreightonGithub: @jcreightonLinkedIn: @jennifercreightonHost: Kent C. DoddsWebsiteTwitterGithubYoutubeTesting JavaScriptEpicReact.dev

Audio
Featured in this Episode

No persons identified in this episode.

Transcription

No transcription available yet

Help us prioritize this episode for transcription by upvoting it.

0 upvotes
🗳️ Sign in to Upvote

Popular episodes get transcribed faster

Comments

There are no comments yet.

Please log in to write the first comment.