Skip to content

Instantly share code, notes, and snippets.

@mikeringrose
mikeringrose / peg.grammar
Created September 22, 2021 03:00
Boolean Expressions
Start
= _* node:Node+
{
return node[0];
}
/ _*
{
return {};
}
/ EOF

React Internationalization

  1. Initialize i18next and pass down react-i18next.
  2. Simplest usage is to use the useTranslation hook
  3. Use the Render prop
  4. The Trans component allows one to render a whole JSX tree

React Internationalization

  1. Initialize i18next and pass down react-i18next.
  2. Simplest usage is to use the useTranslation hook
  3. Use the Render prop
  4. The Trans component allows one to render a whole JSX tree