Skip to content

chandrakumarreddy/twitter-feed-search-using-rtk-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Folder structure

/src

  • index.tsx: Entry point file that renders the React component tree

/app

  • store.ts: store setup
  • rootReducer.ts: root reducer (optional)
  • App.tsx: root React component

/common: hooks, generic components, utils, etc

/features: contains all "feature folders"

  • /todos:
    • a single feature folder todosSlice.ts: Redux reducer logic and associated actions
  • Todos.tsx: a React component

/app

  • contains app-wide setup and layout that depends on all the other folders.

/common

  • contains truly generic and reusable utilities and components.

/features

  • has folders that contain all functionality related to a specific feature. In this example, todosSlice.ts is a "duck"-style file that contains a call to RTK's createSlice() function, and exports the slice reducer and action creators.