Skip to content

Commit

Permalink
#14: add deprecation warning for React users
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Y. Li committed Apr 18, 2019
1 parent 2ce9a33 commit cf791b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/addon-contexts/src/index.ts
@@ -1,3 +1,8 @@
import { withContexts } from './preview/frameworks/react';
export { withContexts };
export default withContexts;

console.error(
"[addon-contexts] Deprecation warning: `import { withContexts } from 'addon-contexts'` has been " +
"deprecated. Please import from 'addon-contexts/react' instead."
);

0 comments on commit cf791b6

Please sign in to comment.