All the applications have multiple top-level directories as mentioned below:

  • Components: it is used for “dumb” React components that are unfamiliar with Redux.
  • Containers: It is used for “smart” React components which are connected to the Redux.
  • Actions: It is used for all the action creators, where the file name should be corresponding to the part of the app.
  • Reducers: It is used for all the reducers where the file name is corresponding to the state key.
  • Store: it is used for store initialization. This directory works best in small and mid-level size apps.
lead interview questions
BY Best Interview Question ON 31 May 2021