Skip to content
Discussion options

You must be logged in to vote

This hook is generic/core.

If your React component is only called inside docs pages, you can use these ones:

import {
  useVersions,
  useActiveVersion,
  useActivePluginAndVersion,
  useActiveDocContext,
} from '@docusaurus/plugin-content-docs/client';

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@allenscha
Comment options

@slorber
Comment options

slorber Jul 20, 2023
Collaborator

Answer selected by allenscha
@allenscha
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants