in lesson 8 of react-router docs, discussing "index routes", describe following paragraph:
this work fine, we'll want
home
attached routeabout
,repos
in future. few reasons include:
- participating in data fetching abstraction relies on matched routes , components.
- participating in
onenter
hooks- participating in code-splitting
also, feels keep
app
decoupledhome
, let route config decide render children. remember, want build small apps inside small apps, not big ones!
i fine rest of docs, i'm having hard time understanding they're talking here.
1- mean "home
attached route"?
2- "data fetching abstraction", why thing?
3- code-splitting?
i believe fits format of questions here (objectively answerable, related software). in advance.
every route associated component (not other way around). says may want component rendered not in
/
(default path without using router) on given route.i'm not one, think refers capability of component load different data based on route, minimizing payload.
for big web apps it’s not efficient put code single file, if blocks of code required under circumstances. webpack has feature split codebase “chunks” loaded on demand.
Comments
Post a Comment