Skip to content

Commit

Permalink
fix(FEC-10241): preact hooks doesn't exported from core (#521)
Browse files Browse the repository at this point in the history
export `preact/hooks` as `preactHooks`
  • Loading branch information
yairans committed Jun 25, 2020
1 parent f2f608f commit bb4819f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow-typed/modules/preact-hooks.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module 'preact/hooks' {
declare module.exports: any;
}
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as preact from 'preact';
import {EventType} from './event/event-type';
import * as redux from 'react-redux';
import * as preacti18n from 'preact-i18n';
import * as preactHooks from 'preact/hooks';
// ui reducers
import * as Reducers from './reducers';
// ui presets
Expand All @@ -24,6 +25,7 @@ export {createPortal} from 'preact/compat';
export {preact};
export {redux};
export {preacti18n};
export {preactHooks};

export {style};

Expand Down

0 comments on commit bb4819f

Please sign in to comment.