---
title: "Discussion on \"How to Write Cleaner React code\" | Hashnode"
description: "Discussion on \"How to Write Cleaner React code\". Avoid unnecessary tags in React"
url: "https://hashnode.com/posts/how-to-write-cleaner-react-code/61eac3510b35507a93a04988"
---

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

Discussion

# [How to Write Cleaner React code](https://adityatyagi.com/how-to-write-cleaner-react-code?utm_source=hashnode&utm_medium=feed)

Avoid unnecessary tags in React

Jan 21, 2022 · 5 min read · adityatyagi.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Aditya Tyagi](https://hashnode.com/@adityatyagi)

@adityatyagi · India

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

Programmer and a voracious reader

## Responses 2

Markdown supported · ⌘↵ to post

[Kai](https://hashnode.com/@KaiWritesCode)

[Jan 22, 2022](https://hashnode.com/posts/how-to-write-cleaner-react-code/61eac3510b35507a93a04988/comment/61eb904a5fbc177f9f3b3a7d)

Great tips, I've never heard of "div-soup" and I never knew that it caused such an effect on the cost per change. Thanks for sharing.

[Aditya Tyagi](https://hashnode.com/@adityatyagi)

[Jan 22, 2022](https://hashnode.com/posts/how-to-write-cleaner-react-code/61eac3510b35507a93a04988/comment/61eb904a5fbc177f9f3b3a7d#reply-61eba1b75fbc177f9f3b3c7d)

Glad you liked it!
