Skip to content

Subsecond-LLC/subsecond-react-router-6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Subsecond React Router 6

Codemod package for upgrading to react-router@6 for use with subsecond.app

Disclaimer

This library is still in active development and will require some manual work to apply to any codebase. Please use with caution and always do a thorough review of any changes.

Transforms:

  • <Switch> to <Routes>
  • Change to <Route element={...} />
  • <Route exact> fix
  • useHistory to useNavigate
  • <Redirect> to <Navigate>

There are still a quite a few edge cases to iron out and fixes to add, but this is a good start.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published