SHARE
TWEET

Untitled

a guest Jul 21st, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { switchLang, lang } = useContext(LangContext);
  2. ...
  3. <button
  4.   className={lang === 'en-US' ? 'active' : ''}
  5.   onClick={() => switchLang('en-US')}>
  6.   EN
  7. </button>
  8. ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top