stereobooster/react-snap

Generate json-files from ajax requests

Open

#221 opened on Jul 23, 2018

View on GitHub
 (5 comments) (0 reactions) (0 assignees)JavaScript (403 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (4,982 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi!

I've just started using react-snap together with create-react-app, loadable-components and redux. Everything works great so far. React-snap generates prerendered html for every route that can be used for the initial requests, loadable-components generates js-bundles for all the subsequent navigation/requests and data is fetched in the form of json from a rest-api.

Would it be possible for react-snap to also generate separate json-files along with the prerendered html and make all subsequent requests fetch those instead of burden the rest-api?

Thanks in advance!

Contributor guide