Skip to content

Commit

Permalink
🚚 update StaticRouter import
Browse files Browse the repository at this point in the history
background: remix-run/react-router#8353 (comment)

`.js` extension seems to be no longer needed

This also has the added benefit of
reducing the bundle size by about 1.65kB
  • Loading branch information
duhdugg committed Feb 16, 2022
1 parent c7c226f commit 52b3108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
useLocation,
useNavigate,
} from 'react-router-dom'
import { StaticRouter } from 'react-router-dom/server.js'
import { StaticRouter } from 'react-router-dom/server'
import {
getGradientClassName,
getThemeClassName,
Expand Down

0 comments on commit 52b3108

Please sign in to comment.