-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IO Monad in React App #25
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Kyle, I am trying to use IO monad in React app(I don't know how much you are familiar with it), and I thought of using it as custom hook for every fetching side-effect needed in component. This is what I came up with so far:
And I can use it in some component to fetch some data like this:
Would you say that this example is one possible solution to using monio in react, and would you implement it in some other way?
The text was updated successfully, but these errors were encountered: