File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929<img src =" assets/wouter.svg " align =" right " width =" 250 " alt =" by Katya Simacheva " />
3030
31- - Zero dependency, only ** 1308 bytes** gzipped vs 11KB [ React Router] ( https://github.com/ReactTraining/react-router ) .
31+ - Zero dependency, only ** 1322 bytes** gzipped vs 11KB [ React Router] ( https://github.com/ReactTraining/react-router ) .
3232- Supports both ** React** and ** [ Preact] ( https://preactjs.com/ ) ** ! Read _ [ "Preact support" section] ( #preact-support ) _ for more details.
3333- No top-level ` <Router /> ` component, it is ** fully optional** .
3434- Mimics [ React Router] ( https://github.com/ReactTraining/react-router ) 's best practices by providing familiar
@@ -469,7 +469,7 @@ const App = () => (
469469 < Route path= " /foo" > ... < / Route>
470470 < Route path= " /foo/" > ... < / Route>
471471 < / Router>
472- )
472+ );
473473```
474474
475475** [ ▶ Demo Sandbox] ( https://codesandbox.io/s/wouter-path-to-regexp-strict-rq72c ) **
@@ -618,7 +618,7 @@ const handleRequest = (req, res) => {
618618
619619We've got some great news for you! If you're a minimalist bundle-size nomad and you need a damn simple
620620routing in your app, you can just use the [ ` useLocation ` hook] ( #uselocation-hook-working-with-the-history )
621- which is only ** 341 bytes gzipped** and manually match the current location with it:
621+ which is only ** 370 bytes gzipped** and manually match the current location with it:
622622
623623``` js
624624import useLocation from " wouter/use-location" ;
Original file line number Diff line number Diff line change 5757 "size-limit" : [
5858 {
5959 "path" : " index.js" ,
60- "limit" : " 1308 B"
60+ "limit" : " 1337 B"
6161 },
6262 {
6363 "path" : " use-location.js" ,
64- "limit" : " 341 B"
64+ "limit" : " 377 B"
6565 }
6666 ],
6767 "eslintConfig" : {
You can’t perform that action at this time.
0 commit comments