Added usePlugin hooks
Summary: `usePlugin(pluginFactory)` returns the current plugin instance's api that was exposed by the plugin directory. Passing `pluginFactory` is technically strictly not needed, but having the user pass it, we can make sure it is strongly typed Reviewed By: nikoant Differential Revision: D22286293 fbshipit-source-id: 4268b6849b8cd3d524103de7eadbd6c0a65c7a61
This commit is contained in:
committed by
Facebook GitHub Bot
parent
952e929699
commit
159c0deaf1
@@ -53,7 +53,8 @@ test('it can render a plugin', () => {
|
||||
<body>
|
||||
<div>
|
||||
<h1>
|
||||
Hi from test plugin
|
||||
Hi from test plugin
|
||||
0
|
||||
</h1>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user