Alternative hook creators: createStateHook and createActionsHook
masterIn addition to the standard createHook which returns both state and actions, react-sweet-state provides two specialized creators:
createStateHook: Creates a hook that only returns the state.createActionsHook: Creates a hook that only returns the actions.
Use these when a component only needs to read data or only needs to trigger updates, to avoid unnecessary re-renders or to simplify the component API.