Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/davidicus/use-lang-direction

A React hook that reads the HTML element's dir attribute value and any updates to that value allowing you to update your UI accordingly.
https://github.com/davidicus/use-lang-direction

Last synced: 2 months ago
JSON representation

A React hook that reads the HTML element's dir attribute value and any updates to that value allowing you to update your UI accordingly.

Lists

README

        

# use-lang-direction

A React hook that reads the HTML element's `dir` attribute value and any updates to that value allowing you to update your UI accordingly.

## In Action

[CodeSandbox Demo](https://codesandbox.io/s/uselangdirection-ditky)

## Basic Usage

```JavaScript
import React from "react";
import { useLangDirection } from "use-lang-direction";

const App = () => {
const langDir = useLangDirection();

return (




);
};

```

## License

MIT