node.js - Remove double quote from an api using React js -


i want remove de double quote api result. result: result

componentdidmount() {      fetch('/todo/2')     .then((response) => response.json())     .then((responsejson) =>{       this.setstate({         message: responsejson.data.publicacion       });     })   } 

here i'm printing result in react js:

<div classname="card-container">      <div classname="card">           <img classname="avatar" src={avatar} alt="" />           <div classname="name">peter stark</div>           <div classname="date">a las 4:56 p.m. </div>            <p classname="card">             {json.stringify(this.state.message)}           </p>      </div> </div> 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -