79592306

Date: 2025-04-25 10:22:14
Score: 1
Natty:
Report link
    const serverRenderPaths =["/docs","/dashboard"]
    if(!serverRenderPaths.includes(window.location.pathname))
{
ReactDom.createRoot(document.getElementById("root")).render(
    <App>);
    }

By this way you can exclude particular routes

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vijayasuriyan V