I'm trying to read the Jumbotron's height.
In order to do that, I followed this answer.
The only difference is that I'm applying the ref to a Reactstrap Jumbotron. So I added this code:
<Jumbotron
className="test"
ref={ (divElement) => this.divElement = divElement}
>
The result is this:
Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.
How should I overcome this problem?