Upgrade rumext and add some examples of syntax sugar.

This commit is contained in:
Andrey Antukh 2022-01-20 18:21:46 +01:00 committed by Andrés Moya
parent dcd53183a8
commit c754a757eb
8 changed files with 67 additions and 89 deletions

View file

@ -29,7 +29,8 @@
(mf/defc on-main-error
[{:keys [error] :as props}]
(mf/use-effect (st/emitf (rt/assign-exception error)))
(mf/with-effect
(st/emit! (rt/assign-exception error)))
[:span "Internal application error"])
(mf/defc main-page