---
title: "Telmo Goncalves (@telmo) | Hashnode"
description: "Developer who can design. Read the latest articles by Telmo Goncalves on Hashnode."
url: "https://hashnode.com/@telmo"
---

@telmo

# Telmo Goncalves

@telmo · Portugal · Joined April 2020

Developer who can design.

[Website](https://telmo.is/)

## Comments

[I'm using enum because of TypeScript though. If you're not using TS you can do: export const sizes = { MD: 'md', // etc } The benefit is that you'll have the size names or button types all in the same place. If you need to change from lg to large you only need to change it in one place.](https://hashnode.com/posts/a-neat-way-of-building-react-components/60229875aaa3543c903bfbc9/comment/6024de728a18494dfcecbf4e#reply-6024ece68a18494dfcecc04c)

Reply · Article · Feb 11, 2021 · [A neat way of building React components](https://hashnode.com/posts/a-neat-way-of-building-react-components/60229875aaa3543c903bfbc9)

[The only reason I would disagree with this is, lets picture you're using <Button size="md"> is hundreds of places in your app. Now, you get a requirement to change it from md to medium. With the enum you only need to change it in the Button component itself, you don't need to go over every single scenario where you're using it and change to medium.](https://hashnode.com/posts/a-neat-way-of-building-react-components/60229875aaa3543c903bfbc9/comment/6024e3a14d9e7d4dd727e022#reply-6024ec6e8a18494dfcecc047)

Reply · Article · Feb 11, 2021 · [A neat way of building React components](https://hashnode.com/posts/a-neat-way-of-building-react-components/60229875aaa3543c903bfbc9)
