{
  "id": "task_libraries:routing/react",
  "path": "/exapedia/react-routing-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React routing libraries",
  "answer": [
    {
      "t": "text",
      "text": "React routing libraries match the browser URL to the components a React app renders. A router maps each path to a route component and can load that route's data before it renders. These libraries let single-page apps and server-rendered sites keep navigation in sync with browser history."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React routing libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#next-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-router",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tanstack-router",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#wouter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#remix-run-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F185"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#reach-router",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F202"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#gatsby",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-routerfive",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#next-js",
          "label": [
            {
              "t": "text",
              "text": "next"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F129"
        },
        {
          "t": "text",
          "text": ", a count that covers every Next.js app."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "File-system route generation",
            "Route-owned data loading"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#next-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F128"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-router",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tanstack-router",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#wouter",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#remix-run-react",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F185"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#reach-router",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F202"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#gatsby",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-routerfive",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "next-js",
          "name": [
            {
              "t": "fact",
              "fact": "F128"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vercel/next.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/next"
            },
            {
              "label": "Docs",
              "href": "https://nextjs.org"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://nextjs.org",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/umami-software/umami",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function useNavigation() {\n  const router = useRouter();\n  const pathname = usePathname();\n  const searchParams = useSearchParams();\n  const [, teamId] = pathname.match(/\\/teams\\/([a-f0-9-]+)/) || [];\n  const [, websiteId] = pathname.match(/\\/websites\\/([a-f0-9-]+)/) || [];\n  const [, linkId] = pathname.match(/\\/links\\/([a-f0-9-]+)/) || [];\n  const [, pixelId] = pathname.match(/\\/pixels\\/([a-f0-9-]+)/) || [];\n  const [, boardId] = pathname.match(/\\/boards\\/([a-f0-9-]+)/) || [];\n  const searchParamsString = searchParams.toString();\n  const queryParams = useMemo(() => Object.fromEntries(searchParams), [searchParamsString]);\n\n  const updateParams = useCallback(\n    (params?: Record<string, string | number>) => {\n      return buildPath(pathname, { ...queryParams, ...params });\n    },\n    [pathname, queryParams],\n  );\n\n  const replaceParams = useCallback(\n    (params?: Record<string, string | number>) => {\n      return buildPath(pathname, params);\n    },\n    [pathname],\n  );\n\n  const renderUrl = useCallback(\n    (path: string, params?: Record<string, string | number> | false) => {\n      return buildPath(\n        teamId ? `/teams/${teamId}${path}` : path,\n        params === false ? {} : { ...queryParams, ...params },\n      );\n    },\n    [teamId, queryParams],\n  );\n\n  return {\n    router,\n    pathname,\n    searchParams,\n    query: queryParams,\n    teamId,\n    websiteId,\n    linkId,\n    pixelId,\n    boardId,\n    updateParams,\n    replaceParams,\n    renderUrl,\n  };\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/umami-software/umami/blob/b18d5144dfe7342edeeca6f61d13ba3baabed9ad/src/components/hooks/useNavigation.ts#L5-L55",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F140"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20next%20for%20stable%20navigation%20callbacks%2C%20active%20sidebar%20links%20and%20URL%20query-state%20helpers&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F128"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import Link from 'next/link';\n\nexport default function Page() {\n  return <Link href='/about'>About</Link>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://nextjs.org/docs/app/getting-started/linking-and-navigating",
                  "label": [
                    {
                      "t": "text",
                      "text": "linking-and-navigating.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-router",
          "name": [
            {
              "t": "fact",
              "fact": "F143"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/remix-run/react-router"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-router"
            },
            {
              "label": "Docs",
              "href": "https://github.com/remix-run/react-router#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/remix-run/react-router#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F143"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mui/material-ui",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function Layout({ children }: { children: React.ReactNode }) {\n  return (\n    <html lang=\"en\" suppressHydrationWarning>\n      <head>\n        <meta charSet=\"utf-8\" />\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n        <Meta />\n        <Links />\n      </head>\n      <body>\n        {children}\n        <ScrollRestoration />\n        <Scripts />\n      </body>\n    </html>\n  );\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mui/material-ui/blob/a152f7a517b91706e4aeddf650ca3a9900bb2a20/examples/material-ui-react-router-ts/app/root.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F156"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20react-router%20for%20stable%20navigation%20callbacks%2C%20active%20sidebar%20links%20and%20URL%20query-state%20helpers&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F143"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { createRoot } from 'react-dom/client';\nimport { BrowserRouter, Routes, Route } from 'react-router';\n\ncreateRoot(document.getElementById('root')!).render(\n  <BrowserRouter>\n    <Routes><Route path='/' element={<h1>Home</h1>} /></Routes>\n  </BrowserRouter>\n);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://reactrouter.com/start/declarative/installation",
                  "label": [
                    {
                      "t": "text",
                      "text": "installation.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tanstack-router",
          "name": [
            {
              "t": "fact",
              "fact": "F159"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/TanStack/router"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@tanstack/react-router"
            },
            {
              "label": "Docs",
              "href": "https://tanstack.com/router"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F64"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://tanstack.com/router",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F159"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { createRoot } from 'react-dom/client';\nimport { createRootRoute, createRoute, createRouter, Outlet, RouterProvider } from '@tanstack/react-router';\n\nconst rootRoute = createRootRoute({ component: () => <Outlet /> });\nconst homeRoute = createRoute({ getParentRoute: () => rootRoute, path: '/', component: () => <h1>Home</h1> });\nconst router = createRouter({ routeTree: rootRoute.addChildren([homeRoute]) });\ncreateRoot(document.getElementById('root')!).render(<RouterProvider router={router} />);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://tanstack.com/router/latest/docs/framework/react/routing/code-based-routing",
                  "label": [
                    {
                      "t": "text",
                      "text": "main.tsx"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20%40tanstack/react-router%20for%20stable%20navigation%20callbacks%2C%20active%20sidebar%20links%20and%20URL%20query-state%20helpers&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F159"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F164"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "wouter",
          "name": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/molefrog/wouter"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/wouter"
            },
            {
              "label": "Docs",
              "href": "https://github.com/molefrog/wouter#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F89"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/molefrog/wouter#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F170"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/the-via/app",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "() => {\n  const hasHIDSupport = 'hid' in navigator || OVERRIDE_HID_CHECK;\n\n  const renderMode = useAppSelector(getRenderMode);\n  const showConsoleTab = useAppSelector(getShowConsoleTab);\n  const [location] = useLocation();\n  const RouteComponents = useMemo(\n    () =>\n      PANES.filter((pane) => pane.key !== 'console').map((pane) => {\n        return (\n          <Route component={pane.component} key={pane.key} path={pane.path} />\n        );\n      }),\n    [],\n  );\n\n  const CanvasRouter = renderMode === '2D' ? CanvasRouter2D : CanvasRouter3D;\n  const testContextState = useState({clearTestKeys: () => {}});\n  return (\n    <>\n        <TestContext.Provider value={testContextState}>\n          <GlobalStyle />\n          {hasHIDSupport && <UnconnectedGlobalMenu />}\n          <CanvasRouter />\n\n          <Home hasHIDSupport={hasHIDSupport}>\n            {RouteComponents}\n            {showConsoleTab && (\n              <PersistentPane $active={location === '/console'}>\n                <HIDConsole isActive={location === '/console'} />\n              </PersistentPane>\n            )}\n          </Home>\n        </TestContext.Provider>\n    </>\n  );\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/the-via/app/blob/935106a990af39bdd1ade881c02366eac486240d/src/Routes.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20projects%20using%20wouter%20for%20stable%20navigation%20callbacks%2C%20active%20sidebar%20links%20and%20URL%20query-state%20helpers&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F170"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { useLocation } from 'wouter';\n\nexport default function Location() {\n  const [location] = useLocation();\n  return <p>{location}</p>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/wouter@3.13.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F175"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "remix-run-react",
          "name": [
            {
              "t": "fact",
              "fact": "F185"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/remix-run/remix"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@remix-run/react"
            },
            {
              "label": "Docs",
              "href": "https://github.com/remix-run/remix#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/remix-run/remix#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F185"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/remix-run/indie-stack",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export default function NoteDetailsPage() {\n  const data = useLoaderData<typeof loader>();\n\n  return (\n    <div>\n      <h3 className=\"text-2xl font-bold\">{data.note.title}</h3>\n      <p className=\"py-6\">{data.note.body}</p>\n      <hr className=\"my-4\" />\n      <Form method=\"post\">\n        <button\n          type=\"submit\"\n          className=\"rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:bg-blue-400\"\n        >\n          Delete\n        </button>\n      </Form>\n    </div>\n  );\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/remix-run/indie-stack/blob/56abb93bf81f635b574d9ca23eed05602699458a/app/routes/notes.$noteId.tsx#L34-L52",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40remix-run/react%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F185"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Link } from '@remix-run/react';\n\nexport default function Index() {\n  return <Link to='/about'>About</Link>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://v2.remix.run/docs/components/link/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F190"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "reach-router",
          "name": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/reach/router"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@reach/router"
            },
            {
              "label": "Docs",
              "href": "https://github.com/reach/router#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F209"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/reach/router#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F202"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/thanos-io/thanos",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F217"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "const App: FC<PathPrefixProps & ThanosComponentProps> = ({ pathPrefix, thanosComponent }) => {\n  const [userTheme, setUserTheme] = useLocalStorage<themeSetting>(themeLocalStorageKey, 'auto');\n  const browserHasThemes = useMedia('(prefers-color-scheme)');\n  const browserWantsDarkTheme = useMedia('(prefers-color-scheme: dark)');\n\n  let theme: themeName;\n  if (userTheme !== 'auto') {\n    theme = userTheme;\n  } else {\n    theme = browserHasThemes ? (browserWantsDarkTheme ? 'dark' : 'light') : 'light';\n  }\n\n  return (\n    <ThemeContext.Provider\n      value={{ theme: theme, userPreference: userTheme, setTheme: (t: themeSetting) => setUserTheme(t) }}\n    >\n      <Theme />\n      <ErrorBoundary>\n        <Navigation\n          pathPrefix={pathPrefix}\n          thanosComponent={thanosComponent}\n          defaultRoute={defaultRouteConfig[thanosComponent]}\n        />\n        <Container fluid style={{ paddingTop: 70 }}>\n          <QueryParamProvider reachHistory={globalHistory}>\n            <Router basepath={`${pathPrefix}`}>\n              <Redirect from=\"/\" to={`${pathPrefix}${defaultRouteConfig[thanosComponent]}`} />\n\n              <PanelList path=\"/graph\" pathPrefix={pathPrefix} />\n              <Alerts path=\"/alerts\" pathPrefix={pathPrefix} />\n              <Config path=\"/config\" pathPrefix={pathPrefix} />\n              <Flags path=\"/flags\" pathPrefix={pathPrefix} />\n              <Rules path=\"/rules\" pathPrefix={pathPrefix} />\n              <ServiceDiscovery path=\"/service-discovery\" pathPrefix={pathPrefix} />\n              <Status path=\"/status\" pathPrefix={pathPrefix} />\n              <TSDBStatus path=\"/tsdb-status\" pathPrefix={pathPrefix} />\n              <Targets path=\"/targets\" pathPrefix={pathPrefix} />\n              <Stores path=\"/stores\" pathPrefix={pathPrefix} />\n              <Blocks path=\"/blocks\" pathPrefix={pathPrefix} />\n              <Blocks path=\"/loaded\" pathPrefix={pathPrefix} view=\"loaded\" />\n              <NotFound pathPrefix={pathPrefix} default defaultRoute={defaultRouteConfig[thanosComponent]} />\n            </Router>\n          </QueryParamProvider>\n        </Container>\n      </ErrorBoundary>\n    </ThemeContext.Provider>\n  );\n};",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/thanos-io/thanos/blob/df1f3f3d5e72769dc639cb6006a7972b168672ce/pkg/ui/react-app/src/App.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F216"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40reach/router%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F202"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Router } from '@reach/router';\n\nfunction Home(_props: { path?: string }) { return <h1>Home</h1>; }\nexport default function App() { return <Router><Home path='/' /></Router>; }\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/reach/router/d2c9ad06715c9d48c2d16f55f7cd889b626d2521/website/src/markdown/api/Router.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "Router.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F207"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "gatsby",
          "name": [
            {
              "t": "fact",
              "fact": "F219"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/gatsbyjs/gatsby"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/gatsby"
            },
            {
              "label": "Docs",
              "href": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F219"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/gatsbyjs/gatsby-starter-blog",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F234"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "const Layout = ({ location, title, children }) => {\n  const rootPath = `${__PATH_PREFIX__}/`\n  const isRootPath = location.pathname === rootPath\n  let header\n\n  if (isRootPath) {\n    header = (\n      <h1 className=\"main-heading\">\n        <Link to=\"/\">{title}</Link>\n      </h1>\n    )\n  } else {\n    header = (\n      <Link className=\"header-link-home\" to=\"/\">\n        {title}\n      </Link>\n    )\n  }\n\n  return (\n    <div className=\"global-wrapper\" data-is-root-path={isRootPath}>\n      <header className=\"global-header\">{header}</header>\n      <main>{children}</main>\n      <footer>\n        © {new Date().getFullYear()}, Built with\n        {` `}\n        <a href=\"https://www.gatsbyjs.com\">Gatsby</a>\n      </footer>\n    </div>\n  )\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/gatsbyjs/gatsby-starter-blog/blob/d75052245100ae3c98807c5f38c6e7ec68910e74/src/components/layout.js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F233"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=gatsby%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F219"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Link } from 'gatsby';\n\nexport default function Home() {\n  return <Link to='/about'>About</Link>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-link/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F224"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-routerfive",
          "name": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/router5/router5"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-router5"
            },
            {
              "label": "Docs",
              "href": "https://router5.js.org"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://router5.js.org",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/crazyfactory/ts-react-boilerplate",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F251"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "public render(): JSX.Element {\n    const {translations} = this.props;\n    const routes = getRoutes();\n    return (\n      <nav className={classNames.nav}>\n        <ul>\n          <li>\n            <ConnectedLink activeClassName={classNames.activeLink} routeName={routes.homePage.name}>\n              {translations.home}\n            </ConnectedLink>\n          </li>\n          <li>\n            <ConnectedLink activeClassName={classNames.activeLink} routeName={routes.aboutPage.name}>\n              {translations.aboutUs}\n            </ConnectedLink>\n          </li>\n          <li>\n            <ConnectedLink activeClassName={classNames.activeLink} routeName={routes.counterPage.name}>\n              {translations.counter}\n            </ConnectedLink>\n          </li>\n          <li>\n            <ConnectedLink activeClassName={classNames.activeLink} routeName={routes.starsPage.name}>\n              {translations.stars}\n            </ConnectedLink>\n          </li>\n        </ul>\n      </nav>\n    );\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/crazyfactory/ts-react-boilerplate/blob/4ee1668b78cd707564aef95d0e1405ce02c231d0/src/app/containers/Header.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F250"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-router5%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { createRoot } from 'react-dom/client';\nimport createRouter from 'router5';\nimport browserPlugin from 'router5-plugin-browser';\nimport { RouterProvider, Link } from 'react-router5';\n\nconst router = createRouter([{ name: 'home', path: '/' }]);\nrouter.usePlugin(browserPlugin());\nrouter.start();\ncreateRoot(document.getElementById('root')!).render(\n  <RouterProvider router={router}><Link routeName='home'>Home</Link></RouterProvider>\n);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/router5/router5/master/packages/react-router5/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React routing library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#react-router",
          "label": [
            {
              "t": "text",
              "text": "react-router"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that start with declarative routing and add data loading later. "
        },
        {
          "t": "link",
          "href": "#tanstack-router",
          "label": [
            {
              "t": "text",
              "text": "@tanstack/react-router"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that want typed paths, search parameters, and cached route data. "
        },
        {
          "t": "link",
          "href": "#wouter",
          "label": [
            {
              "t": "text",
              "text": "wouter"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits small apps that route through hooks or route components."
        }
      ]
    },
    {
      "q": "What is React Router?",
      "a": [
        {
          "t": "link",
          "href": "#react-router",
          "label": [
            {
              "t": "text",
              "text": "react-router"
            }
          ]
        },
        {
          "t": "text",
          "text": " matches URLs to React interfaces, with optional data routing and a full framework mode. Its loaders and actions run in Data Mode."
        }
      ]
    },
    {
      "q": "What is TanStack Router?",
      "a": [
        {
          "t": "link",
          "href": "#tanstack-router",
          "label": [
            {
              "t": "text",
              "text": "@tanstack/react-router"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides typed React navigation, nested route trees, and cached per-route data loaders."
        }
      ]
    },
    {
      "q": "React Router vs TanStack Router: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#react-router",
          "label": [
            {
              "t": "text",
              "text": "react-router"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that choose features by mode, from declarative routing to a full framework. "
        },
        {
          "t": "link",
          "href": "#tanstack-router",
          "label": [
            {
              "t": "text",
              "text": "@tanstack/react-router"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that want types inferred through every route and built-in stale-while-revalidate caching."
        }
      ]
    },
    {
      "q": "What is wouter?",
      "a": [
        {
          "t": "link",
          "href": "#wouter",
          "label": [
            {
              "t": "text",
              "text": "wouter"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides hook-based location control and component-based routing for React and Preact applications."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, next",
      "display": "Next.js",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, next",
      "display": "354.3M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, next",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, next",
      "display": "16.3.4",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, next",
      "display": "v16.3.4",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, next",
      "display": "143.6K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Matches nested routes, next",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Loads route data, next",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Types route parameters, next",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Renders on the server, next",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, next",
      "display": "npm install next react react-dom",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, next",
      "display": "Defines React application routes through files, shared layouts, and server-rendered page components.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, next",
      "display": "Preserves layouts between pages",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, next",
      "display": "Keep shared layouts interactive while navigating between their pages.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, next",
      "display": "Fetches data in server components",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, next",
      "display": "Load page data directly through fetch or a database client.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, next",
      "display": "Static search hooks need Suspense",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, next",
      "display": "Wrap useSearchParams in Suspense when the page is statically rendered.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, next",
      "display": "Refresh preserves server-side cached data",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, next",
      "display": "Use revalidatePath or revalidateTag when cached server data must change.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, next",
      "display": "'use client'\n\nimport { useRouter } from 'next/navigation'\n\nexport default function Page() {\n  const router = useRouter()\n\n  return (\n    <button type=\"button\" onClick={() => router.push('/dashboard')}>\n      Dashboard\n    </button>\n  )\n}\n\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, next",
      "display": "export function useNavigation() {\n  const router = useRouter();\n  const pathname = usePathname();\n  const searchParams = useSearchParams();\n  const [, teamId] = pathname.match(/\\/teams\\/([a-f0-9-]+)/) || [];\n  const [, websiteId] = pathname.match(/\\/websites\\/([a-f0-9-]+)/) || [];\n  const [, linkId] = pathname.match(/\\/links\\/([a-f0-9-]+)/) || [];\n  const [, pixelId] = pathname.match(/\\/pixels\\/([a-f0-9-]+)/) || [];\n  const [, boardId] = pathname.match(/\\/boards\\/([a-f0-9-]+)/) || [];\n  const searchParamsString = searchParams.toString();\n  const queryParams = useMemo(() => Object.fromEntries(searchParams), [searchParamsString]);\n\n  const updateParams = useCallback(\n    (params?: Record<string, string | number>) => {\n      return buildPath(pathname, { ...queryParams, ...params });\n    },\n    [pathname, queryParams],\n  );\n\n  const replaceParams = useCallback(\n    (params?: Record<string, string | number>) => {\n      return buildPath(pathname, params);\n    },\n    [pathname],\n  );\n\n  const renderUrl = useCallback(\n    (path: string, params?: Record<string, string | number> | false) => {\n      return buildPath(\n        teamId ? `/teams/${teamId}${path}` : path,\n        params === false ? {} : { ...queryParams, ...params },\n      );\n    },\n    [teamId, queryParams],\n  );\n\n  return {\n    router,\n    pathname,\n    searchParams,\n    query: queryParams,\n    teamId,\n    websiteId,\n    linkId,\n    pixelId,\n    boardId,\n    updateParams,\n    replaceParams,\n    renderUrl,\n  };\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, next",
      "display": "useNavigation.ts · useNavigation()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, next",
      "display": "umami-software/umami",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, umami-software/umami",
      "display": "40.2K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, umami-software/umami",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F27": {
      "label": "Library name, react-router",
      "display": "React Router",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, react-router",
      "display": "286.9M",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, react-router",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, react-router",
      "display": "8.5.1",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, react-router",
      "display": "v8.5.1",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, react-router",
      "display": "56.6K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Matches nested routes, react-router",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Loads route data, react-router",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Types route parameters, react-router",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Renders on the server, react-router",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, react-router",
      "display": "npm i react-router",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, react-router",
      "display": "Matches URLs to React interfaces, with optional data routing and a full framework mode.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, react-router",
      "display": "Chooses routing features by mode",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, react-router",
      "display": "Start with declarative routing or add data loading and framework tooling.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, react-router",
      "display": "Loads data alongside route navigation",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, react-router",
      "display": "Use loaders, actions, and pending states in Data Mode.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, react-router",
      "display": "Declarative mode excludes data APIs",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, react-router",
      "display": "Choose Data or Framework Mode for loaders, actions, and fetchers.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, react-router",
      "display": "Parent authentication leaves child gaps",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, react-router",
      "display": "Protect each loader and action, or use appropriate server middleware.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, react-router",
      "display": "// route(\"products/:pid\", \"./product.tsx\");\nimport type { Route } from \"./+types/product\";\n\nexport async function clientLoader({\n  params,\n}: Route.ClientLoaderArgs) {\n  const res = await fetch(`/api/products/${params.pid}`);\n  const product = await res.json();\n  return product;\n}\n\n// HydrateFallback is rendered while the client loader is running\nexport function HydrateFallback() {\n  return <div>Loading...</div>;\n}\n\nexport default function Product({\n  loaderData,\n}: Route.ComponentProps) {\n  const { name, description } = loaderData;\n  return (\n    <div>\n      <h1>{name}</h1>\n      <p>{description}</p>\n    </div>\n  );\n}\n\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, react-router",
      "display": "const useNavigate = (): RouterNavigateFunction => {\n    const navigate = useReactRouterNavigate();\n    const navigateRef = useRef<RouterNavigateFunction>(\n        navigate as RouterNavigateFunction\n    );\n\n    useEffect(() => {\n        navigateRef.current = navigate as RouterNavigateFunction;\n    }, [navigate]);\n\n    // Return a stable function that always calls the latest navigate\n    return React.useCallback((...args: Parameters<RouterNavigateFunction>) => {\n        return navigateRef.current(...args);\n    }, []) as RouterNavigateFunction;\n};\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, react-router",
      "display": "reactRouterProvider.tsx · useNavigate()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, react-router",
      "display": "marmelab/react-admin",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, marmelab/react-admin",
      "display": "27.0K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, marmelab/react-admin",
      "display": "Nov 2026",
      "asOf": "2026-11-14"
    },
    "F53": {
      "label": "Library name, @tanstack/react-router",
      "display": "TanStack Router",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, @tanstack/react-router",
      "display": "92.6M",
      "asOf": "2026-11-15"
    },
    "F55": {
      "label": "License, @tanstack/react-router",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, @tanstack/react-router",
      "display": "1.170.46",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Undated package release, @tanstack/react-router",
      "display": "v1.170.46",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Repository stars, @tanstack/react-router",
      "display": "15.3K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Matches nested routes, @tanstack/react-router",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Loads route data, @tanstack/react-router",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Types route parameters, @tanstack/react-router",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Renders on the server, @tanstack/react-router",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, @tanstack/react-router",
      "display": "npm install @tanstack/react-router @tanstack/react-router-devtools",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, @tanstack/react-router",
      "display": "Provides typed React navigation, nested route trees, and cached per-route data loaders.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, @tanstack/react-router",
      "display": "Infers types throughout routing",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, @tanstack/react-router",
      "display": "Carry path, search, and context types through navigation and route hooks.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, @tanstack/react-router",
      "display": "Caches and preloads route data",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, @tanstack/react-router",
      "display": "Reuse route-loader data with built-in stale-while-revalidate caching.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, @tanstack/react-router",
      "display": "Loader caches stay route-specific",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, @tanstack/react-router",
      "display": "Add a shared data cache when routes need deduplicated records.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, @tanstack/react-router",
      "display": "Server navigation calls do nothing",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, @tanstack/react-router",
      "display": "Use the redirect API to redirect a server-rendered request.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, @tanstack/react-router",
      "display": "import React, { StrictMode } from 'react'\nimport ReactDOM from 'react-dom/client'\nimport {\n  Link,\n  Outlet,\n  RouterProvider,\n  createRootRoute,\n  createRoute,\n  createRouter,\n} from '@tanstack/react-router'\nimport { TanStackRouterDevtools } from '@tanstack/react-router-devtools'\nimport './styles.css'\n\nconst rootRoute = createRootRoute({\n  component: () => (\n    <>\n      <div className=\"p-2 flex gap-2\">\n        <Link to=\"/\" className=\"[&.active]:font-bold\">\n          Home\n        </Link>{' '}\n        <Link to=\"/about\" className=\"[&.active]:font-bold\">\n          About\n        </Link>\n      </div>\n      <hr />\n      <Outlet />\n      <TanStackRouterDevtools />\n    </>\n  ),\n})\n\nconst indexRoute = createRoute({\n  getParentRoute: () => rootRoute,\n  path: '/',\n  component: function Index() {\n    return (\n      <div className=\"p-2\">\n        <h3>Welcome Home!</h3>\n      </div>\n    )\n  },\n})\n\nconst aboutRoute = createRoute({\n  getParentRoute: () => rootRoute,\n  path: '/about',\n  component: function About() {\n    return <div className=\"p-2\">Hello from About!</div>\n  },\n})\n\nconst routeTree = rootRoute.addChildren([indexRoute, aboutRoute])\n\nconst router = createRouter({\n  routeTree,\n  defaultPreload: 'intent',\n  scrollRestoration: true,\n})\n\ndeclare module '@tanstack/react-router' {\n  interface Register {\n    router: typeof router\n  }\n}\n\nconst rootElement = document.getElementById('app')!\nif (!rootElement.innerHTML) {\n  const root = ReactDOM.createRoot(rootElement)\n  root.render(\n    <StrictMode>\n      <RouterProvider router={router} />\n    </StrictMode>,\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function, @tanstack/react-router",
      "display": "export function LibraryList({ show }: { show: boolean }) {\n  const routerState = useRouterState();\n  const pathname = routerState.location.pathname;\n\n  if (!show) {\n    return null;\n  }\n\n  return (\n    <div className=\"flex flex-col h-full\">\n      <div className=\"flex-shrink-0 p-4\">\n        <h2 className=\"text-lg font-semibold tracking-tight\">Library</h2>\n      </div>\n      <ScrollArea className=\"flex-grow\">\n        <div className=\"space-y-1 p-4 pt-0\">\n          {LIBRARY_SECTIONS.map((section) => {\n            const fullLocation = pathname + routerState.location.searchStr;\n            const isActive =\n              section.to === fullLocation ||\n              section.to === pathname ||\n              (section.to !== \"/\" &&\n                section.to !== \"/library\" &&\n                !section.to.includes(\"?\") &&\n                pathname.startsWith(section.to));\n\n            return (\n              <Link\n                key={section.id}\n                to={section.to}\n                className={cn(\n                  \"w-full flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors\",\n                  isActive\n                    ? \"bg-sidebar-accent text-sidebar-accent-foreground font-semibold\"\n                    : \"hover:bg-sidebar-accent\",\n                )}\n              >\n                <section.icon className=\"h-4 w-4\" />\n                {section.label}\n              </Link>\n            );\n          })}\n        </div>\n      </ScrollArea>\n    </div>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function reference, @tanstack/react-router",
      "display": "LibraryList.tsx · LibraryList()",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project repository, @tanstack/react-router",
      "display": "dyad-sh/dyad",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project stars, dyad-sh/dyad",
      "display": "22.3K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project push date, dyad-sh/dyad",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F79": {
      "label": "Library name, wouter",
      "display": "wouter",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Monthly downloads, wouter",
      "display": "10.5M",
      "asOf": "2026-11-15"
    },
    "F81": {
      "label": "License, wouter",
      "display": "Unlicense",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Package release, wouter",
      "display": "3.13.0",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Undated package release, wouter",
      "display": "v3.13.0",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Repository stars, wouter",
      "display": "7.9K",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Matches nested routes, wouter",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Types route parameters, wouter",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Renders on the server, wouter",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Install, wouter",
      "display": "npm i wouter",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "What it does, wouter",
      "display": "Provides hook-based location control and component-based routing for React and Preact applications.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, wouter",
      "display": "Uses hooks or route components",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, wouter",
      "display": "Choose direct location control or component-based matching for the interface.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, wouter",
      "display": "Nests routes with relative locations",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, wouter",
      "display": "Enable nest to give child routes locations relative to their parent.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, wouter",
      "display": "Reads the nearest route parameters",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, wouter",
      "display": "Read useParams within the route that owns the needed parameter.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations lead, wouter",
      "display": "Server rendering needs explicit location",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations, wouter",
      "display": "Wrap the server-rendered application in Router with the request path.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Quickstart, wouter",
      "display": "import { useLocation } from \"wouter\";\n\nconst CurrentLocation = () => {\n  const [location, navigate] = useLocation();\n\n  return (\n    <div>\n      {`The current page is: ${location}`}\n      <a onClick={() => navigate(\"/somewhere\")}>Click to update</a>\n    </div>\n  );\n};\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need",
      "display": "Choosing routing architecture",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Why choose react-router",
      "display": "declarative, data, and framework modes",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need in introduction",
      "display": "choosing routing architecture",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "When to consider wouter",
      "display": "direct location hooks cover a smaller routing interface",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need",
      "display": "Typed routes with cached loaders",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose @tanstack/react-router",
      "display": "route-wide inferred path and search types",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "typed routes with cached loaders",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Hook-based location control",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose wouter",
      "display": "standalone location hooks and route components",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "hook-based location control",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "When to consider @tanstack/react-router",
      "display": "built-in route caching and preloading are needed",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need",
      "display": "Shared application layouts",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Why choose next",
      "display": "layouts that preserve state during navigation",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need in introduction",
      "display": "shared application layouts",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Page introduction",
      "display": "React routing libraries let web developers map application URLs to interface views.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Which React routing library should I choose?",
      "display": "React Router offers declarative, data, and framework modes.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which React routing library should I choose?",
      "display": "TanStack Router combines typed routes with cached loaders.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which React routing library should I choose?",
      "display": "wouter offers standalone location hooks and route components.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which React routing library should I choose?",
      "display": "Next.js defines application routes through files and folders.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Is Next.js a drop-in router for an existing React application?",
      "display": "The Next.js App Router defines page files inside its app directory and requires a root layout.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Is Next.js a drop-in router for an existing React application?",
      "display": "React Router lets the application choose declarative, data, or framework routing.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Do all React Router modes include loaders?",
      "display": "Data Mode adds loaders, actions, and pending states to declarative routing.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Do all React Router modes include loaders?",
      "display": "Framework Mode adds generated typed route modules through a Vite plugin.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can a React Router parent loader protect every child route?",
      "display": "Matched loaders can run independently; protect each loader and action or enforce checks with server middleware.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Does TanStack Router share loader records across routes?",
      "display": "Its route cache does not share caching or deduplication between routes; use a shared cache for that role.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does React Router still use the react-router-dom package?",
      "display": "The current major removes the re-export package; use react-router or react-router/dom for DOM-specific APIs.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Why does useSearchParams work in development but fail a Next.js build?",
      "display": "A static page using that Client Component hook needs a Suspense boundary in production builds.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Can these routers export a static site?",
      "display": "Next.js static-export builds create an HTML file for each route.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can these routers export a static site?",
      "display": "Static exports require export mode in the Next.js configuration.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "Library name, next",
      "display": "next",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Monthly downloads, next",
      "display": "362.1M",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "License, next",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Package release, next",
      "display": "16.4.6",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release date, next",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Install, next",
      "display": "npx create-next-app@16.4.6 routing-demo --yes",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Quickstart, next",
      "display": "import Link from 'next/link';\n\nexport default function Page() {\n  return <Link href='/about'>About</Link>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Repository stars, next",
      "display": "143.7K",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "File-system route generation, next",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Route-owned data loading, next",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Routing role, next",
      "display": "Full-stack framework; App Router and Pages Router",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Project function, next",
      "display": "export function useNavigation() {\n  const router = useRouter();\n  const pathname = usePathname();\n  const searchParams = useSearchParams();\n  const [, teamId] = pathname.match(/\\/teams\\/([a-f0-9-]+)/) || [];\n  const [, websiteId] = pathname.match(/\\/websites\\/([a-f0-9-]+)/) || [];\n  const [, linkId] = pathname.match(/\\/links\\/([a-f0-9-]+)/) || [];\n  const [, pixelId] = pathname.match(/\\/pixels\\/([a-f0-9-]+)/) || [];\n  const [, boardId] = pathname.match(/\\/boards\\/([a-f0-9-]+)/) || [];\n  const searchParamsString = searchParams.toString();\n  const queryParams = useMemo(() => Object.fromEntries(searchParams), [searchParamsString]);\n\n  const updateParams = useCallback(\n    (params?: Record<string, string | number>) => {\n      return buildPath(pathname, { ...queryParams, ...params });\n    },\n    [pathname, queryParams],\n  );\n\n  const replaceParams = useCallback(\n    (params?: Record<string, string | number>) => {\n      return buildPath(pathname, params);\n    },\n    [pathname],\n  );\n\n  const renderUrl = useCallback(\n    (path: string, params?: Record<string, string | number> | false) => {\n      return buildPath(\n        teamId ? `/teams/${teamId}${path}` : path,\n        params === false ? {} : { ...queryParams, ...params },\n      );\n    },\n    [teamId, queryParams],\n  );\n\n  return {\n    router,\n    pathname,\n    searchParams,\n    query: queryParams,\n    teamId,\n    websiteId,\n    linkId,\n    pixelId,\n    boardId,\n    updateParams,\n    replaceParams,\n    renderUrl,\n  };\n}",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project source file, next",
      "display": "src/components/hooks/useNavigation.ts",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Project full_name, next",
      "display": "umami-software/umami",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Project stargazers_count, next",
      "display": "40.2K",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Library name, react-router",
      "display": "react-router",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Monthly downloads, react-router",
      "display": "294.3M",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "License, react-router",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Package release, react-router",
      "display": "8.5.1",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Package release date, react-router",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Install, react-router",
      "display": "npm install react-router react@^19.2.7 react-dom@^19.2.7 @types/react@^19.2.0 @types/react-dom@^19.2.0",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Quickstart, react-router",
      "display": "import { createRoot } from 'react-dom/client';\nimport { BrowserRouter, Routes, Route } from 'react-router';\n\ncreateRoot(document.getElementById('root')!).render(\n  <BrowserRouter>\n    <Routes><Route path='/' element={<h1>Home</h1>} /></Routes>\n  </BrowserRouter>\n);\n",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Repository stars, react-router",
      "display": "56.6K",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "File-system route generation, react-router",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Route-owned data loading, react-router",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Routing modes, react-router",
      "display": "Declarative, Data, and Framework",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Current import/host boundary, react-router",
      "display": "Root react-router8; Node>=22.22.0",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Project function, react-router",
      "display": "export function Layout({ children }: { children: React.ReactNode }) {\n  return (\n    <html lang=\"en\" suppressHydrationWarning>\n      <head>\n        <meta charSet=\"utf-8\" />\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n        <Meta />\n        <Links />\n      </head>\n      <body>\n        {children}\n        <ScrollRestoration />\n        <Scripts />\n      </body>\n    </html>\n  );\n}",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project source file, react-router",
      "display": "examples/material-ui-react-router-ts/app/root.tsx",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project full_name, react-router",
      "display": "mui/material-ui",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project stargazers_count, react-router",
      "display": "99.4K",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Library name, @tanstack/react-router",
      "display": "@tanstack/react-router",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Monthly downloads, @tanstack/react-router",
      "display": "95.0M",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "License, @tanstack/react-router",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Package release, @tanstack/react-router",
      "display": "1.170.46",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Package release date, @tanstack/react-router",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Install, @tanstack/react-router",
      "display": "npm install @tanstack/react-router react react-dom",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Quickstart, @tanstack/react-router",
      "display": "import { createRoot } from 'react-dom/client';\nimport { createRootRoute, createRoute, createRouter, Outlet, RouterProvider } from '@tanstack/react-router';\n\nconst rootRoute = createRootRoute({ component: () => <Outlet /> });\nconst homeRoute = createRoute({ getParentRoute: () => rootRoute, path: '/', component: () => <h1>Home</h1> });\nconst router = createRouter({ routeTree: rootRoute.addChildren([homeRoute]) });\ncreateRoot(document.getElementById('root')!).render(<RouterProvider router={router} />);\n",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Repository stars, @tanstack/react-router",
      "display": "15.3K",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "File-system route generation, @tanstack/react-router",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Route-owned data loading, @tanstack/react-router",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "File/code configuration, @tanstack/react-router",
      "display": "File-based or code-based routes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Library name, wouter",
      "display": "wouter",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Monthly downloads, wouter",
      "display": "10.7M",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "License, wouter",
      "display": "Unlicense",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Package release, wouter",
      "display": "3.13.0",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Package release date, wouter",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Install, wouter",
      "display": "npm install wouter react react-dom",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Quickstart, wouter",
      "display": "import { useLocation } from 'wouter';\n\nexport default function Location() {\n  const [location] = useLocation();\n  return <p>{location}</p>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Repository stars, wouter",
      "display": "7.9K",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "File-system route generation, wouter",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Route-owned data loading, wouter",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Routing role, wouter",
      "display": "Browser hooks and JSX routes without a mandatory top-level provider",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project function, wouter",
      "display": "() => {\n  const hasHIDSupport = 'hid' in navigator || OVERRIDE_HID_CHECK;\n\n  const renderMode = useAppSelector(getRenderMode);\n  const showConsoleTab = useAppSelector(getShowConsoleTab);\n  const [location] = useLocation();\n  const RouteComponents = useMemo(\n    () =>\n      PANES.filter((pane) => pane.key !== 'console').map((pane) => {\n        return (\n          <Route component={pane.component} key={pane.key} path={pane.path} />\n        );\n      }),\n    [],\n  );\n\n  const CanvasRouter = renderMode === '2D' ? CanvasRouter2D : CanvasRouter3D;\n  const testContextState = useState({clearTestKeys: () => {}});\n  return (\n    <>\n        <TestContext.Provider value={testContextState}>\n          <GlobalStyle />\n          {hasHIDSupport && <UnconnectedGlobalMenu />}\n          <CanvasRouter />\n\n          <Home hasHIDSupport={hasHIDSupport}>\n            {RouteComponents}\n            {showConsoleTab && (\n              <PersistentPane $active={location === '/console'}>\n                <HIDConsole isActive={location === '/console'} />\n              </PersistentPane>\n            )}\n          </Home>\n        </TestContext.Provider>\n    </>\n  );\n}",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project source file, wouter",
      "display": "src/Routes.tsx",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project full_name, wouter",
      "display": "the-via/app",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project stargazers_count, wouter",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Library name, @remix-run/react",
      "display": "Remix",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Monthly downloads, @remix-run/react",
      "display": "3.2M",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "License, @remix-run/react",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Package release, @remix-run/react",
      "display": "2.17.5",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Package release date, @remix-run/react",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Install, @remix-run/react",
      "display": "npx create-remix@2.17.5 routing-demo",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Quickstart, @remix-run/react",
      "display": "import { Link } from '@remix-run/react';\n\nexport default function Index() {\n  return <Link to='/about'>About</Link>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Official description, @remix-run/react",
      "display": "Provides React DOM bindings for Remix.",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Quickstart source file, @remix-run/react",
      "display": "app/routes/_index.tsx (API recipe)",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Repository stars, @remix-run/react",
      "display": "33.5K",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "File-system route generation, @remix-run/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Route-owned data loading, @remix-run/react",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Product/version boundary, @remix-run/react",
      "display": "Remix v2 React runtime",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Project function, @remix-run/react",
      "display": "export default function NoteDetailsPage() {\n  const data = useLoaderData<typeof loader>();\n\n  return (\n    <div>\n      <h3 className=\"text-2xl font-bold\">{data.note.title}</h3>\n      <p className=\"py-6\">{data.note.body}</p>\n      <hr className=\"my-4\" />\n      <Form method=\"post\">\n        <button\n          type=\"submit\"\n          className=\"rounded bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:bg-blue-400\"\n        >\n          Delete\n        </button>\n      </Form>\n    </div>\n  );\n}",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Project source file, @remix-run/react",
      "display": "app/routes/notes.$noteId.tsx",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project full_name, @remix-run/react",
      "display": "remix-run/indie-stack",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project stargazers_count, @remix-run/react",
      "display": "1.1K",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Library name, @reach/router",
      "display": "@reach/router",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Monthly downloads, @reach/router",
      "display": "1.8M",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "License, @reach/router",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Package release, @reach/router",
      "display": "1.3.4",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Package release date, @reach/router",
      "display": "Jun 2020",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Install, @reach/router",
      "display": "npm install @reach/router react@16 react-dom@16",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Quickstart, @reach/router",
      "display": "import { Router } from '@reach/router';\n\nfunction Home(_props: { path?: string }) { return <h1>Home</h1>; }\nexport default function App() { return <Router><Home path='/' /></Router>; }\n",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Official description, @reach/router",
      "display": "Provides routing for React.",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Quickstart source file, @reach/router",
      "display": "src/App.tsx (API recipe)",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Repository stars, @reach/router",
      "display": "6.8K",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "File-system route generation, @reach/router",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Route-owned data loading, @reach/router",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Routing role, @reach/router",
      "display": "Legacy React component routing with nested child paths",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Project function, @reach/router",
      "display": "const App: FC<PathPrefixProps & ThanosComponentProps> = ({ pathPrefix, thanosComponent }) => {\n  const [userTheme, setUserTheme] = useLocalStorage<themeSetting>(themeLocalStorageKey, 'auto');\n  const browserHasThemes = useMedia('(prefers-color-scheme)');\n  const browserWantsDarkTheme = useMedia('(prefers-color-scheme: dark)');\n\n  let theme: themeName;\n  if (userTheme !== 'auto') {\n    theme = userTheme;\n  } else {\n    theme = browserHasThemes ? (browserWantsDarkTheme ? 'dark' : 'light') : 'light';\n  }\n\n  return (\n    <ThemeContext.Provider\n      value={{ theme: theme, userPreference: userTheme, setTheme: (t: themeSetting) => setUserTheme(t) }}\n    >\n      <Theme />\n      <ErrorBoundary>\n        <Navigation\n          pathPrefix={pathPrefix}\n          thanosComponent={thanosComponent}\n          defaultRoute={defaultRouteConfig[thanosComponent]}\n        />\n        <Container fluid style={{ paddingTop: 70 }}>\n          <QueryParamProvider reachHistory={globalHistory}>\n            <Router basepath={`${pathPrefix}`}>\n              <Redirect from=\"/\" to={`${pathPrefix}${defaultRouteConfig[thanosComponent]}`} />\n\n              <PanelList path=\"/graph\" pathPrefix={pathPrefix} />\n              <Alerts path=\"/alerts\" pathPrefix={pathPrefix} />\n              <Config path=\"/config\" pathPrefix={pathPrefix} />\n              <Flags path=\"/flags\" pathPrefix={pathPrefix} />\n              <Rules path=\"/rules\" pathPrefix={pathPrefix} />\n              <ServiceDiscovery path=\"/service-discovery\" pathPrefix={pathPrefix} />\n              <Status path=\"/status\" pathPrefix={pathPrefix} />\n              <TSDBStatus path=\"/tsdb-status\" pathPrefix={pathPrefix} />\n              <Targets path=\"/targets\" pathPrefix={pathPrefix} />\n              <Stores path=\"/stores\" pathPrefix={pathPrefix} />\n              <Blocks path=\"/blocks\" pathPrefix={pathPrefix} />\n              <Blocks path=\"/loaded\" pathPrefix={pathPrefix} view=\"loaded\" />\n              <NotFound pathPrefix={pathPrefix} default defaultRoute={defaultRouteConfig[thanosComponent]} />\n            </Router>\n          </QueryParamProvider>\n        </Container>\n      </ErrorBoundary>\n    </ThemeContext.Provider>\n  );\n};",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Project source file, @reach/router",
      "display": "pkg/ui/react-app/src/App.tsx",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Project full_name, @reach/router",
      "display": "thanos-io/thanos",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project stargazers_count, @reach/router",
      "display": "14.3K",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Library name, gatsby",
      "display": "gatsby",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Monthly downloads, gatsby",
      "display": "1.2M",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "License, gatsby",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Package release, gatsby",
      "display": "5.16.1",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Package release date, gatsby",
      "display": "Feb 2026",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Install, gatsby",
      "display": "npm install gatsby react react-dom",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Quickstart, gatsby",
      "display": "import { Link } from 'gatsby';\n\nexport default function Home() {\n  return <Link to='/about'>About</Link>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Official description, gatsby",
      "display": "Generates sites with React.",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Quickstart source file, gatsby",
      "display": "src/pages/index.tsx (API recipe)",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Repository stars, gatsby",
      "display": "55.9K",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "File-system route generation, gatsby",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Route-owned data loading, gatsby",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Routing role, gatsby",
      "display": "Site framework with generated pages and client-only routes",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Project function, gatsby",
      "display": "const Layout = ({ location, title, children }) => {\n  const rootPath = `${__PATH_PREFIX__}/`\n  const isRootPath = location.pathname === rootPath\n  let header\n\n  if (isRootPath) {\n    header = (\n      <h1 className=\"main-heading\">\n        <Link to=\"/\">{title}</Link>\n      </h1>\n    )\n  } else {\n    header = (\n      <Link className=\"header-link-home\" to=\"/\">\n        {title}\n      </Link>\n    )\n  }\n\n  return (\n    <div className=\"global-wrapper\" data-is-root-path={isRootPath}>\n      <header className=\"global-header\">{header}</header>\n      <main>{children}</main>\n      <footer>\n        © {new Date().getFullYear()}, Built with\n        {` `}\n        <a href=\"https://www.gatsbyjs.com\">Gatsby</a>\n      </footer>\n    </div>\n  )\n}",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Project source file, gatsby",
      "display": "src/components/layout.js",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project full_name, gatsby",
      "display": "gatsbyjs/gatsby-starter-blog",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project stargazers_count, gatsby",
      "display": "3.5K",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Library name, react-router5",
      "display": "react-router5",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Monthly downloads, react-router5",
      "display": "42.8K",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "License, react-router5",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Package release, react-router5",
      "display": "8.0.1",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release date, react-router5",
      "display": "Mar 2020",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Install, react-router5",
      "display": "npm install react-router5 router5 router5-plugin-browser react react-dom",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Quickstart, react-router5",
      "display": "import { createRoot } from 'react-dom/client';\nimport createRouter from 'router5';\nimport browserPlugin from 'router5-plugin-browser';\nimport { RouterProvider, Link } from 'react-router5';\n\nconst router = createRouter([{ name: 'home', path: '/' }]);\nrouter.usePlugin(browserPlugin());\nrouter.start();\ncreateRoot(document.getElementById('root')!).render(\n  <RouterProvider router={router}><Link routeName='home'>Home</Link></RouterProvider>\n);\n",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Official description, react-router5",
      "display": "Provides router5 helpers for React.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart source file, react-router5",
      "display": "src/main.tsx (API recipe)",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Repository stars, react-router5",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "File-system route generation, react-router5",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Route-owned data loading, react-router5",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Async data model, react-router5",
      "display": "Custom middleware can block transitions and carry data on route state",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Project function, react-router5",
      "display": "public render(): JSX.Element {\n    const {translations} = this.props;\n    const routes = getRoutes();\n    return (\n      <nav className={classNames.nav}>\n        <ul>\n          <li>\n            <ConnectedLink activeClassName={classNames.activeLink} routeName={routes.homePage.name}>\n              {translations.home}\n            </ConnectedLink>\n          </li>\n          <li>\n            <ConnectedLink activeClassName={classNames.activeLink} routeName={routes.aboutPage.name}>\n              {translations.aboutUs}\n            </ConnectedLink>\n          </li>\n          <li>\n            <ConnectedLink activeClassName={classNames.activeLink} routeName={routes.counterPage.name}>\n              {translations.counter}\n            </ConnectedLink>\n          </li>\n          <li>\n            <ConnectedLink activeClassName={classNames.activeLink} routeName={routes.starsPage.name}>\n              {translations.stars}\n            </ConnectedLink>\n          </li>\n        </ul>\n      </nav>\n    );\n  }",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Project source file, react-router5",
      "display": "src/app/containers/Header.tsx",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Project full_name, react-router5",
      "display": "crazyfactory/ts-react-boilerplate",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Project stargazers_count, react-router5",
      "display": "116",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best React routing libraries React Router TanStack Router wouter Next.js examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
