You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paulgb
changed the title
Match the functionality of useState and useReducer in React
[DIS-615] Match the functionality of useState and useReducer in React
Feb 6, 2023
useSharedState
should allow a function to be passed instead of a literal value. The function is evaluated on the current (local) value of the state.useSharedReducer
should take an optionalinit
function that takes the prior argument and returns the first state.The functions will still differ from their React counterparts in that they will take a key as the first parameter.
DIS-615
The text was updated successfully, but these errors were encountered: