I have a function in my React code defined like this:
getAttachment(url) { fetch(url).then((responseText) => { var response = responseText.js
Instead of binding this you could just scope the reference to this. like
this
var that = this;
and then reference that.setState.
that.setState