Skip to content

Commit 639fddd

Browse files
Make sure we start at the top of the page
1 parent 926c9fe commit 639fddd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs-site/src/root.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import ExampleComponents from './example_components.jsx'
33
import HeroExample from './hero_example.jsx'
44

55
export default class Root extends React.Component {
6+
componentDidMount() {
7+
window.scrollTo(0, 0);
8+
}
9+
610
render () {
711
return (
812
<div>

0 commit comments

Comments
 (0)