Skip to content
Discussion options

You must be logged in to vote

I used react Context to solve this.
Use useEffect to load wasm module and set it as value to Provider then using useContext to get the wasm functions in components.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@msuntharesan
Comment options

@ghost
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@msuntharesan
Comment options

@ghost
Comment options

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected by msuntharesan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants