Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import {useCurrentLocale, LocaleSwitcher} from 'reusable-locale';
  2.  
  3. const Comp1 = () => {
  4. const currentLocale = useCurrentLocale(); // Using a global store from external lib
  5. }
  6.  
  7. const Comp2 = () => {
  8. return <LocaleSwitcher/>; // External components using the same global store
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement