Answer the question
In order to leave comments, you need to log in
How to get the width in px of an element via this.refs.elem?
I set on the element ref="table". Then I get it via refs:
// after render
componentDidMount() {
let el = this.refs['table'];
el.getBoundingClientRect(); // не работает
}
var input = this.refs.myInput;
var inputRect = input.getBoundingClientRect();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question