Browse Source

add comment

Yuki Takei 3 years ago
parent
commit
f5102c23f2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/app/src/components/ReactMarkdownComponents/Header.tsx

+ 1 - 0
packages/app/src/components/ReactMarkdownComponents/Header.tsx

@@ -57,6 +57,7 @@ export const Header = (props: HeaderProps): JSX.Element => {
 
   const CustomTag = `h${level}` as keyof JSX.IntrinsicElements;
 
+  // update isActive when hash is changed
   useEffect(() => {
     const handler = (url: string) => {
       const hash = (new URL(url, 'https://example.com')).hash.slice(1);