Create ref to the DOM button: const ref = React. ... scrollIntoView() } render() { return <div /> } } The recommended approach is: class MyComponent extends ...
確定! 回上一頁