React.createRef(),React.forwardRef(),forwardRef()结合next.js的link进行路由跳转
码云https://gitee.com/skyvilm/react-next.js1.React.createRef()作用:获取dom元素使用importReact,{Component}from'react'exportdefaultclassIndexextendsComponen{constructor(props){super(props)this.myref=React.createR