How piotrwitek/react-redux-typescript-guide works
This repository is a TypeScript/React guide with a runnable playground, not a standalone production service. The playground’s user-facing route demonstrates component patterns, while separate examples cover hooks, context, higher-order components, and Redux patterns; feature modules include counter and todo examples, with a mock todo API. The graph emphasizes these documented learning areas and the visible app/store wiring. Some feature implementations are unsampled, so their internal call relationships are not inferred.
Main entry points: app.tsx App and routes · home.tsx Pattern showcase · use-theme-context.tsx Theme hook · fc-counter-connected.tsx Connected components
Components 18
Playground app
- App and routes
playground/src/app.tsx - Pattern showcase
playground/src/routes/home.tsx - Page layout
playground/src/layout/layout.tsx
React patterns
- Counter components
playground/src/components/fc-counter.usage.tsx - Class components
playground/src/components/class-counter.usage.tsx - Generic list
playground/src/components/generic-list.usage.tsx - Higher-order components
playground/src/hoc/with-state.tsx - Theme context
playground/src/context/theme-context.ts - Theme hook
playground/src/hooks/use-theme-context.tsx - React hooks
playground/src/hooks/use-reducer.tsx
Redux examples
- Connected components
playground/src/connected/fc-counter-connected.tsx - Counter feature
playground/src/features/counters/reducer.ts - Redux store
playground/src/store/store.ts - Router integration
playground/src/store/redux-router.ts
Todo data
- Todo features
playground/src/features/todos/epics.ts - Typed todo feature
playground/src/features/todos-typesafe/actions.ts - Todo mock API
playground/src/api/todos.ts
Other components
- Playground user
Connections 11
- Playground user → App and routes: opens
README.md - App and routes → Pattern showcase: routes to
playground/src/app.tsx - App and routes → Page layout: renders
playground/src/app.tsx - Pattern showcase → Counter components: renders
playground/src/routes/home.tsx - Pattern showcase → Class components: renders
playground/src/routes/home.tsx - Pattern showcase → Generic list: renders
playground/src/routes/home.tsx - Pattern showcase → Higher-order components: renders
playground/src/routes/home.tsx - Theme hook → Theme context: reads context
playground/src/hooks/use-theme-context.tsx - Connected components → Counter feature: uses actions
- App and routes → Redux store: provides store
playground/src/app.tsx - App and routes → Router integration: configures router
playground/src/app.tsx