Next.js gotcha using body class name
Oct 7, 2021 · 1 min read · the code I was trying to reuse was adding a class "filtering" to document body with the logic that a filter box appears when this class is set function openFilters() { document.body.classList.add('filtering'); the problem I encountered resulted f...
Join discussion