---
title: "Discussion on \"5 React Good Practices\" | Hashnode"
description: "Discussion on \"5 React Good Practices\". What's up, everyone!? 🤙\nRecently, I'm not that active here, but this is due to a lot of work that I have 🤓 I'm working on a couple of projects on which I will share more in near future (one of the projects is a game build with React Native - siiiic..."
url: "https://hashnode.com/posts/5-react-good-practices/5f6887a535d6463d2b5f966a"
---

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

Discussion

# [5 React Good Practices](https://blog.codingbrah.com/5-react-good-practices?utm_source=hashnode&utm_medium=feed)

What's up, everyone!? 🤙 Recently, I'm not that active here, but this is due to a lot of work that I have 🤓 I'm working on a couple of projects on which I will share more in near future (one of the projects is a game build with React Native - siiiic...

Sep 21, 2020 · 5 min read · blog.codingbrah.com  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Codingbrah](https://hashnode.com/@codingbrah)

@codingbrah · Poznań, Poland

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

Web/Mobile App Developers

What's up!? 🤙 We're two developers who love to share their knowledge! You will find here awesome stuff about programming and tech stuff. Feel free to contact us if you got any questions! Check out our website https://codingbrah.com

## Responses 3

Markdown supported · ⌘↵ to post

[Gabriel Idenyi A](https://hashnode.com/@Gabriel_Anthony)

[Sep 21, 2020](https://hashnode.com/posts/5-react-good-practices/5f6887a535d6463d2b5f966a/comment/5f68b01435d6463d2b5f99f5)

Haha, I loved the DRY thingy on #2. Great tips 👍🏽

[Codingbrah](https://hashnode.com/@codingbrah)

[Sep 21, 2020](https://hashnode.com/posts/5-react-good-practices/5f6887a535d6463d2b5f966a/comment/5f68b01435d6463d2b5f99f5#reply-5f68fbd135d6463d2b5f9e51)

Thanks for reading! I really appreciate it! 😊

[Dinys Monvoisin](https://hashnode.com/@dinmon)

[Sep 21, 2020](https://hashnode.com/posts/5-react-good-practices/5f6887a535d6463d2b5f966a/comment/5f6894776dfc523d0a894830)

Hahaha, I like the quote from John Wood 😄. For the controlled and uncontrolled section, what if you mix with JS DOM API? Is that wrong?

Lol, PropTypes only make the code more verbose, better to use TypeScript.

[Codingbrah](https://hashnode.com/@codingbrah)

[Sep 21, 2020](https://hashnode.com/posts/5-react-good-practices/5f6887a535d6463d2b5f966a/comment/5f6894776dfc523d0a894830#reply-5f68f98835d6463d2b5f9e2f)

Haha, this is probably my favorite quote 😂

Regarding controlled and uncontrolled components it's really hard to say what is "bad" or "right". It depends on the specific case, but in most ones in my opinion is better to use the controlled components in order to achieve this "single source of truth” I've mentioned in the post (in short data will be controlled by the state and it will be always in sync with input element). I recommend checking this article, which is also mentioned in React docs -> [goshakkk.name/controlled-vs-uncontrolled-inputs-r…](https://goshakkk.name/controlled-vs-uncontrolled-inputs-react/)

And yeah, I agree with you! It's better to use TypeScript. Moreover, I think in the future it might become a standard in Web Development, so it's worth to learn it 🤓

[Victoria Lo](https://hashnode.com/@victoria)

[Sep 21, 2020](https://hashnode.com/posts/5-react-good-practices/5f6887a535d6463d2b5f966a/comment/5f6892656dfc523d0a894813)

Great tips! Thanks for sharing :)

[Codingbrah](https://hashnode.com/@codingbrah)

[Sep 21, 2020](https://hashnode.com/posts/5-react-good-practices/5f6887a535d6463d2b5f966a/comment/5f6892656dfc523d0a894813#reply-5f68f9d635d6463d2b5f9e33)

Thank you for reading! I really appreciate it! 😊
