title: How to declare a global variable in React?
body: <p>I initialized <code>i18n</code> translation object once in a component (a first component that loads in the app ). That same object is required In all other components. I don't want to re-initialize it in every component. What's the way around? Making it available to window scope doesn't help as I need to use it in the <code>render()</code> method.</p>
  <p>Please suggest a generic solution for these problems and not i18n specific solution.</p>