Skip to content

Multiple Instance

Compare
Choose a tag to compare
@cwtuan cwtuan released this 14 Oct 01:55
· 107 commits to master since this release

react-intl-universal is singleton by default. However, if you would like to have multiple react-intl-universal instance, you could instantiate it on demand.

import intl from 'react-intl-universal'; // singleton instance

It's equalivent to:

import { ReactIntlUniversal } from 'react-intl-universal';
const intl = new ReactIntlUniversal();