Answers for "react js set default route"

0

react js set default route

<Router history={history}>
              <div>
                <Route path="/">
                  <Redirect to="/Campaign"></Redirect>
                </Route>
                <Route path="/Campaign" component={CampaignLayout} />
                <Route path="/Error" component={Error500} />
                <Route path="/success" component={Success} />
              </div>
</Router>
Posted by: Guest on February-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language