Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {useCurrentLocale, LocaleSwitcher} from 'reusable-locale';
- const Comp1 = () => {
- const currentLocale = useCurrentLocale(); // Using a global store from external lib
- }
- const Comp2 = () => {
- return <LocaleSwitcher/>; // External components using the same global store
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement