Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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: about 1 month 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.

Awesome Lists containing this project

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