Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
useReducer vs createReducer - SolidJS
S
SolidJS
โข
3y ago
โข
3 replies
mb21
useReducer vs createReducer
Hello
! What are the pros and cons of
1
. the
useReducer
useReducer
in the tutorial
(
https://www.solidjs.com/tutorial/stores_immutable
-
> scroll down in the left pane
)
, vs
2
.
createReducer
createReducer
from
@solid
-primitives
/reducer
1
) is built on
createStore
createStore
while 2
) is built on
createSignal
createSignal
(
source
)
If I
'd want to put a normal JS object with a couple of fields in it to store some state
.
.
. which one is recommended
? thanks
!
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
useReducer equivalent?
S
SolidJS / support
4y ago
useReducer in Solid, but how
S
SolidJS / support
4y ago
createSignal vs createStore
S
SolidJS / support
14mo ago
captureStoreUpdates vs reconcile
S
SolidJS / support
3y ago