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 5609035 commit 6afc1db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/addon-contexts/src/index.ts
Original file line number Diff line number Diff line change
@@ -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 6afc1db

Please sign in to comment.