C
C
copyhold2017-09-18 06:50:15
React
copyhold, 2017-09-18 06:50:15

What is the meaning of the design?

I came up with this design:

<audio ref={(audio)=>{this.audioElement = audio}} />

how is this better than : just to refer to the element as this.audioElement and not as this.refs.audio ??
<audio ref="audio" />

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question