javascript - Isomorphic React with React Router with KOA -
i create app in koa render react components when user hits address bar, , after react-router client side navigate through links inside rendered react component. possible? want initial load seo friendly. cant provide code yet eager listen of suggestions , answers.
this wanted flow:
user hits ther server (ex: localhost:3123/) --> koa render react component shown (this component has react router links on it) --> user navigate through links (this time dont want hit server again, want react router on side trigger routing.
it doesnt matter if source code when routing through client side not change, want have source code of initial react component when user first hits server. possible?
i have not done serverside rendering, since have developed mobile apps of time, has assets available on clientside.
maybe @ demo head around this: https://github.com/rackt/react-router-mega-demo
Comments
Post a Comment