Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: enforce scrolling to top in AppLayout component
import React from 'react';
import './AppLayout.scss';
import HeaderNav from '../../containers/HeaderNav/HeaderNav';
import ScrollToTop from '../ScrollToTop/ScrollToTop';
export function AppLayout(props) {
return (
<div className='app-layout'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment