Update source/_posts/2020-03-18-subspace-2.0.md
Co-Authored-By: Jonathan Rainville <rainville.jonathan@gmail.com>
This commit is contained in:
parent
4290076fb5
commit
d47bba774f
|
@ -67,7 +67,7 @@ export default MyComponent
|
||||||
```
|
```
|
||||||
|
|
||||||
#### withSubspace
|
#### withSubspace
|
||||||
This higher order component is provided as an alternative to the `useSubspace` hook. This injects the `subspace` property with an already initialized Subspace instance. Just like with the hook, your entire dApp needs to be wrapped with a `<SubspaceProvider />`.
|
This higher order component is provided as an alternative to the `useSubspace` hook. This injects the `subspace` property with an already initialized Subspace instance. Just like with the hook, your entire DApp needs to be wrapped with a `<SubspaceProvider />`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// index.js
|
// index.js
|
||||||
|
|
Loading…
Reference in New Issue