---
title: "Discussion on \"Safely use 'dangerouslySetInnerHTML' in your React applications\" | Hashnode"
description: "Discussion on \"Safely use 'dangerouslySetInnerHTML' in your React applications\". A detailed probing into the common use cases, associated risks, mitigation and best practices, and a mini tutorial of React's dangerouslySetInnerHTML"
url: "https://hashnode.com/posts/safely-use-dangerouslysetinnerhtml-in-your-react-applications/64fe0666d135410e017a9a0b"
---

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

Discussion

# [Safely use 'dangerouslySetInnerHTML' in your React applications](https://ayeshaiq.hashnode.dev/safely-use-dangerouslysetinnerhtml-in-your-react-applications?utm_source=hashnode&utm_medium=feed)

A detailed probing into the common use cases, associated risks, mitigation and best practices, and a mini tutorial of React's dangerouslySetInnerHTML

Sep 10, 2023 · 11 min read · ayeshaiq.hashnode.dev  
Updated Sep 27, 2023  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#html5](https://hashnode.com/tag/html5)

## Written by

[Ayesha Gull](https://hashnode.com/@ayeshag7)

@ayeshag7 · Pakistan

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

Documenting my tech journey.

A CS student who's passionate about everything programming and technology. Here to write about it all.

## Responses 1

Markdown supported · ⌘↵ to post

[Israel Oyetunji](https://hashnode.com/@IsraelMitolu)

[Sep 12, 2023](https://hashnode.com/posts/safely-use-dangerouslysetinnerhtml-in-your-react-applications/64fe0666d135410e017a9a0b/comment/6500475f703e32bdbc1d24d1)

Thanks for this insightful article, Ayesha

[Ayesha Gull](https://hashnode.com/@ayeshag7)

[Sep 12, 2023](https://hashnode.com/posts/safely-use-dangerouslysetinnerhtml-in-your-react-applications/64fe0666d135410e017a9a0b/comment/6500475f703e32bdbc1d24d1#reply-6500a1ce1310dfd331e25b55)

I'm glad you found it insightful.
