Skip to content

Commit 3e8b10d

Browse files
committed
Rename useStateConst to useState'
1 parent 6d684f0 commit 3e8b10d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/React/Basic/Hooks.purs

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module React.Basic.Hooks
77
, ReactChildren
88
, memo
99
, useState
10-
, useStateConst
10+
, useState'
1111
, UseState
1212
, useEffect
1313
, useEffectOnce
@@ -167,11 +167,11 @@ useState initialState =
167167
unsafeHook do
168168
runEffectFn2 useState_ (mkFn2 Tuple) initialState
169169

170-
useStateConst ::
170+
useState' ::
171171
forall state.
172172
state ->
173173
Hook (UseState state) (state /\ (state -> Effect Unit))
174-
useStateConst initialState =
174+
useState' initialState =
175175
useState initialState <#> rmap (_ <<< const)
176176

177177
foreign import data UseState :: Type -> Type -> Type

0 commit comments

Comments
 (0)