mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 17:12:48 +00:00
16 lines
247 B
TypeScript
16 lines
247 B
TypeScript
import React from 'react';
|
|
|
|
export class ScrollToTop extends React.Component<any, any> {
|
|
constructor(props: any) {
|
|
super(props);
|
|
}
|
|
|
|
componentDidMount() {
|
|
window.scrollTo(0, 0);
|
|
}
|
|
|
|
render() {
|
|
return this.props.children;
|
|
}
|
|
}
|