I have an app using react-intl and I am working on adding head tags and then SSR. This is the first time I’ve done this on a Meteor project. It seems to make sense to handle both of these together from the looks of the available solutions.
https://atmospherejs.com/reactrouter/react-router-ssr looks interesting but I can’t figure out how I would integrate it with react-intl because react-intl asks you to wrap the <Router />
element in a <IntlProvider />
element but ReactRouterSSR
creates the router element itself.
So if anyone has suggestions on either of these two methods it would probably solve my problem:
- Integrate react-intl with react-router-ssr
- Manually set up some of the components of react-router-ssr (react-helmet, etc) using npm packages directly