Skip to content

Improve contextType docs #1842

Description

@gaearon

See confusion in react/react#13969.
Specific action items:

  • Clarify .contextType is available only since 16.6 (and corresponding RN/Expo release)
  • Clarify you may not be seeing it due to circular deps, and best practice is to declare it in a separate file
  • People sometimes get confused thinking that createContext value is the one you need to "update", we need to explain it's driven by state
  • Need more coherent doc structure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions