Skip to content

Instantly share code, notes, and snippets.

@blogcacanid
Created November 11, 2020 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blogcacanid/ff34d93878037c4e775d0025a737e6db to your computer and use it in GitHub Desktop.
Save blogcacanid/ff34d93878037c4e775d0025a737e6db to your computer and use it in GitHub Desktop.
message.js Authentication JWT React JS Lumen 7
import { SET_MESSAGE, CLEAR_MESSAGE } from "./types";
export const setMessage = (message) => ({
type: SET_MESSAGE,
payload: message,
});
export const clearMessage = () => ({
type: CLEAR_MESSAGE,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment