Generate React mixins that can leverage context