const { useState, useEffect } = React;

function App() {
  const path = window.location.pathname;

  if (path === '/parent' || path === '/parent/') return <ParentPage />;
  return <ChildPage />;
}

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