Skip to content

Instantly share code, notes, and snippets.

@pavanpodila
Last active August 30, 2017 02:05
Show Gist options
  • Save pavanpodila/fd8bc826cd3dc0ed55d0c8673eded976 to your computer and use it in GitHub Desktop.
Save pavanpodila/fd8bc826cd3dc0ed55d0c8673eded976 to your computer and use it in GitHub Desktop.
Patterns of React Components
  • Higher Order Components
  • Function as Child Component
  • React Context for data propagation
  • Delegation for passing multiple callbacks, as popularized by the Cocoa framework
  • Controlled Inputs with value + onChange
  • Presentation Components which are purely for render
  • Container components that connect to data stores
  • Layout Containers
  • PureComponents that change when props change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment