Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Using Dayjs

To use localised dayjs functions (or use any imported plugin), use the time hook:

import { useTime } from "@revolt/i18n";

function Component() {
  const dayjs = useTime();

  return <span>Time at initial render: {dayjs().format("LT")}</span>
}