---
title: "Discussion on \"Use TypeScript to DRY up React components\" | Hashnode"
description: "Discussion on \"Use TypeScript to DRY up React components\". Introduction\nIn the previous post, we talked about ”plumbing” in React and how it affects the readability of our code.\nWe used React Context to avoid passing down the same props to multiple layers of components and to avoid repeating PropTypes defini..."
url: "https://hashnode.com/posts/typescript-practical-example-prop-type/60d43e6bf16d577cbe60d71a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Use TypeScript to DRY up React components](https://akoskm.com/typescript-practical-example-prop-type?utm_source=hashnode&utm_medium=feed)

Introduction In the previous post, we talked about ”plumbing” in React and how it affects the readability of our code. We used React Context to avoid passing down the same props to multiple layers of components and to avoid repeating PropTypes defini...

Sep 12, 2019 · 5 min read · akoskm.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Ákos Kőműves](https://hashnode.com/@akoskm)

@akoskm

  
[View profile](https://hashnode.com/@akoskm)

Full-Stack Developer and Writer

I build web apps and make educational content to help web developers.

## Responses 1

Markdown supported · ⌘↵ to post

[Pranav Sarda](https://hashnode.com/@sardapv)

[Jun 27, 2021](https://hashnode.com/posts/typescript-practical-example-prop-type/60d43e6bf16d577cbe60d71a/comment/60d83567cb0aa8118c23c623)

nice blog, could you please share your vscode workspace settings. I like the light theme and line gaps, looks clean

[Ákos Kőműves](https://hashnode.com/@akoskm)

[Jun 27, 2021](https://hashnode.com/posts/typescript-practical-example-prop-type/60d43e6bf16d577cbe60d71a/comment/60d83567cb0aa8118c23c623#reply-60d84436cb0aa8118c23c757)

Thanks, [Pranav Sarda](https://hashnode.com/@sardapv) 🙇‍♂️

It is Atom One Light theme: [marketplace.visualstudio.com/items](https://marketplace.visualstudio.com/items?itemName=akamud.vscode-theme-onelight)
