class Issues extends React.Component {
constructor(...params) {
super(...params)
this.state = {
"text": "...list issues",
}
}
async componentDidMount() {
const response = await fetch("http://codepen.io/assertchris/pen/rrjKPN.css")
const text = await response.text()
this.setState({
...this.state,
"length": text.length,
})
}
render() {
if (this.state.length) {
return { this.state.text } ! { this.state.length }
}
return { this.state.text }
}
}