'Can i migrate webpage using old react version to new version?

So the existing web is using old version of react, ajax etc. Customer accesses .../old_url.

My plan is like this

  1. create new react project

    <Switch>
       <Route path="/old_url">
         <Redirect to="old_url_to_old_react_app" />
       </Route>
    
       <Route path="/new_url">
         <MyNewComponent />
       </Route>
     </Switch>
    
  2. flip the old/new url after testing

Any issues with this solution ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source