// Into the Wild: picks the page from <body data-page="..." data-edition="...">

function App() {
  const { page, edition } = document.body.dataset;
  return page === 'edition' ? <EditionPage id={edition} /> : <HomePage />;
}

ReactDOM.createRoot(document.getElementById('root')).render(<App />);
