DEV Community

Discussion on: 👨‍🔬 I tried experimental React and... 💥💥💥

Collapse
 
potouridisio profile image
Ioannis Potouridis

I'll send you two examples from React that answer your questions.

You can see the implementation of that method here.

And here is how you pass a parameter.

Collapse
 
thorocaine profile image
Jonathan Peel

That is nicely put.

Until this is actually ready, I might stay away, but it makes me want to try and create a wrapper function for an API call that would return the result of a reducer (if that makes sense).
The loading state would still need to be managed.