JSPM

react-app-context-mixin

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q38798F
  • License ISC

Create a mixin for React that will transport your definition of your app's context over a prop of your choosing

Package Exports

  • react-app-context-mixin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-app-context-mixin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Generate React mixins that can leverage context Build Status

Sometimes when writing certain types of mixins you want to leverage React's undocumentend 'context'. Although props and state should always be your choice, every now and then you run into situations where that's just impractical. Use this function to create mixins that will safely store you context under one, easy to change prop.

Warning: do not use unless you know what you're doing. Chances of seriously screwing up your app's architecture using this are significant

Poorly documented intentionally. Read the source and tests, it's tiny.