import React from 'react';

import toVoid from '../utils/to-void';

const fake = {
  __fake__: true,
  publish: toVoid,
  subscribe: toVoid,
  unsubscribe: toVoid
};

const { Provider, Consumer } = React.createContext(fake);

// Higher order component
const withPubSub = Component => props => (
  <Consumer>
    {pubSub => <Component {...props} pubSub={pubSub} />}
  </Consumer>
);

export default withPubSub;

export { Provider };

@@ -277,21 +277,45 @@
 nent =%3E 
-props
+React.forwardRef((props, ref)
  =%3E (%0A  
@@ -396,16 +396,17 @@
 nsumer%3E%0A
+)
 );%0A%0Aexpo

Fix regression (i.e., forward `key`)