Use createAsyncAction
of pullstate, we can avoid using useState
to handle async actions。
But how can we implement "Click on a button to run an async action" with it?
See RemoteHello2.tsx
, the "FIXME" part.
npm install
npm run demo
It will open page on browser automatically.