How do I hide the header on my scroll?
The function toggleHeader()
This function receives the direction and scroll amount as parameters. It adds the class hide when the direction is down and scroll amount is greater than 52px (the header height). Otherwise, it removes the class hide.
How do I hide headers in Reactjs?
You can hide those headers by setting the showHeaderWhenEmpty property to false in the pivot table.