V
V
Vladimir Golub2019-07-29 17:35:00
React
Vladimir Golub, 2019-07-29 17:35:00

How to apply style property to ref if it is a component?

My version doesn't work

ReactDOM.findDOMNode(this._showMore).style.bottom = '100px';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-07-29
@RazerVG

forwarding refs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question