Skip to content

Commit 75cae69

Browse files
committed
use export default as pattern like d3-selection does
1 parent 356dde1 commit 75cae69

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/index.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
// components
2-
import DownshiftTypeahead from './components/DownshiftTypeahead/'
2+
export { default as DownshiftTypeahead } from './components/DownshiftTypeahead/'
33

44
// utils
5-
import parseStateFromUrl from './utils/parseStateFromUrl'
6-
import updateQueryString from './utils/updateQueryString'
7-
import updateQueryStringBatch from './utils/updateQueryStringBatch'
8-
9-
// export the library
10-
export default {
11-
DownshiftTypeahead,
12-
parseStateFromUrl,
13-
updateQueryString,
14-
updateQueryStringBatch
15-
}
5+
export { default as parseStateFromUrl } from './utils/parseStateFromUrl'
6+
export { default as updateQueryString } from './utils/updateQueryString'
7+
export {
8+
default as updateQueryStringBatch
9+
} from './utils/updateQueryStringBatch'

0 commit comments

Comments
 (0)