Current Behavior
I have create app using create-react-app and added two routes. However react-snap is working only for Home page. For other routes it is not showing static html when i do view source in browser.
Expected behavior/code
React-Snap should work on all pages.
index.js
import React from 'react';
import {hydrate, render} from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
const rootElement = document.getElementById("root");
if (rootElement.hasChildNodes()) {
hydrate(<App />, rootElement);
} else {
render(<App />, rootElement);
}
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
Bug Report
Current Behavior I have create app using create-react-app and added two routes. However react-snap is working only for Home page. For other routes it is not showing static html when i do view source in browser.
Expected behavior/code React-Snap should work on all pages.
index.js
App.js
Home.js
About.js