我有一个在树(又名门户)之外呈现的组件(弹出窗口),因此丢失了以下内容IntlProvider
:
<IntlProvider locale="en">
<App />
</IntlProvider>
// * <- renders here
Redux 通过允许将 store 实例作为组件的 prop 传递来解决相同的问题:
import store from "./store";
const Component = () => <Popup store={store} />;
有没有类似的方法可以用于 ReactIntl?