How to display stored data in bullets or any other html tag?

I am getting data from database and storing it in react state which contains data form of different html tags for example <p>hello this is data</p>

<ul><li>hello</li><li>hello</li><li>hello</li></ul>

when i want to render this data

{this.state.data}

instead of showing this data in bullets react is simply rendering this as it is. output

How to render this data in bullets as following

  • hello
  • hello


from Recent Questions - Stack Overflow https://ift.tt/3gEF5AI
https://ift.tt/3ztotU0

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation