标签: javascript html reactjs
来自docs
class MyComponent extends React.Component { constructor(props) { super(props); this.myRef = React.createRef(); } render() { return <div ref={this.myRef} />; } }
我的问题是this.myRef.current是指实际DOM节点还是反应虚拟DOM的节点?
this.myRef.current