Skip to content

Commit

Permalink
perf: remove create-react-context
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Oct 28, 2020
1 parent 0b36840 commit 8d2f9dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions components/locale-provider/LocaleProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { PureComponent } from 'react';
import createContext, { Context } from 'create-react-context';
import React, { PureComponent, createContext, Context } from 'react';
import { LocaleProviderProps, Locale } from './PropsType';

const defaultLocale = {} as any as Locale;
Expand Down
3 changes: 1 addition & 2 deletions components/locale-receiver/LocaleReceiver.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { Context } from 'create-react-context';
import React, { Context } from 'react';
import hoistNonReactStatic from 'hoist-non-react-statics';
import { LocaleContext } from '../locale-provider/LocaleProvider';
import defaultLocaleData from '../locale-provider/locale/zh_CN';
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"better-scroll": "1.15.1",
"classnames": "2.2.6",
"color": "^3.1.0",
"create-react-context": "0.2.3",
"hoist-non-react-statics": "^3.3.0",
"lodash": "^4.17.15",
"normalize.css": "8.0.1",
Expand Down

0 comments on commit 8d2f9dd

Please sign in to comment.