Having a bit of trouble pulling text from a node.
The node is a paragraph.
<p className="Blend" refs="hello"> { `${this.state.landing}?utm_campaign=${this.state.utm}` } </p>
I’m trying to log the contents of the node to the console in a function.
makeSmall = () => {
var text = this.refs.hello.innerText
console.log(text)
}
However, this console is not returning anything. I've tried accessing the node with via className as well.
What's the proper way to access text in React?




<p>element on therefsattribute, this should beref