useReadingDirection
The reading direction of the page, from dir on <html>, for the few
components that hand a direction to a library (a slider's thumb, a group's
arrow keys) rather than rely on CSS logical properties. It is "ltr" on
the server and during hydration, then follows the page, including a change
made while the page is open.
This is a function exported by @mapcairn/react, checked against version 0.2.0.
Signature
import { useReadingDirection } from "@mapcairn/react";
function useReadingDirection(): ReadingDirection;
Returns
ReadingDirection