Skip to content

Commit

Permalink
feat: export useLocation and useParams
Browse files Browse the repository at this point in the history
  • Loading branch information
liximomo committed Apr 27, 2020
1 parent c55a655 commit b5e54ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/runtime-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ class ReactRuntime implements Runtime.IRuntime<React.ComponentType<any>> {
imported: 'default',
local: 'dynamic'
});
api.addAppExport(resolveDep('react-router-dom'), 'Link');
api.addAppExport(resolveDep('react-router-dom'), [
'Link',
'useLocation',
'useParams'
]);

configBundler(api);

Expand Down

0 comments on commit b5e54ec

Please sign in to comment.