How to get audio element?
Using React, I wish to get the audio element. var AudioPlayer = React.createClass({ componentDidMount: function () { console.info('Audio: component did mount'); var audio = React.findDOMNode('audio'); console.info('audio', audio); }, render : function() { return ( <audio src="/static/music/foo.mp3" controls /> ); } }); But I keep receiving the error: Error: Invariant Violation: Element appears to be neither ReactComponent nor DOMNode (keys: 0,1,2,3,4) Surely lowered components are React classes? It works using the component references: var AudioPlayer = React.createClass({ componentDidMount: