We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1dd856 commit 39fddc1Copy full SHA for 39fddc1
src/React.purs
@@ -118,6 +118,10 @@ module React where
118
\ }"
119
:: forall state eff. Eff (r :: ReadStateEff state | eff) state
120
121
+ transformState f = do
122
+ state <- readState
123
+ writeState $ f state
124
+
125
foreign import getSelf
126
" function getSelf() { \
127
\ return __current; \
0 commit comments