What are features of presentational/dumb components?

Technology CommunityCategory: React NativeWhat are features of presentational/dumb components?
VietMX Staff asked 3 years ago

Presentational components:

  • are concerned with how things look.
  • have markup and styles of their own.
  • have no dependencies on the rest of the app, such as Redux stores.
  • don’t specify how the data is loaded or mutated.
  • receive data and callbacks exclusively via props.
  • rarely have their own state (when they do, it’s UI state rather than data).