Skip to content

Commit 4662efd

Browse files
committed
withWasm api
1 parent e0b654f commit 4662efd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ type WasmProps = {
107107
}
108108
}) => React.Node
109109
};
110+
111+
withWasm(
112+
config?: {
113+
url?: string,
114+
bufferSource?: BufferSource,
115+
importObject?: {}
116+
},
117+
mapProps?: ({ loading, error, data }) => Props
118+
): (Component: React.ComponentType) => React.ComponentType
110119
```
111120
112121
## Browser support

0 commit comments

Comments
 (0)