• Resolved mhallaq

    (@mhallaq)


    Hi,
    Is there any way to have different routes in the App component? Like below :

    import { useContext } from “react”;

    import { Route, Routes, useLocation } from “react-router-dom”;

    import Start from “./components/start-page/Start”;

    import DecisionMakers from “./components/step-2/DecisionMakers”;

    import TimeResource from “./components/step-4/TimeResource”;

    import “./App.css”;

Viewing 1 replies (of 1 total)
  • Plugin Author rockiger

    (@rockiger)

    I don’t see why there shouldn’t be one – if I understood your question correctly.

    Do you have any trouble with your routes? If yes, try to use a hash router instead of a browser router.

Viewing 1 replies (of 1 total)
  • The topic ‘Router with many pages’ is closed to new replies.