Skip to content

Instantly share code, notes, and snippets.

@shriyajuneja
shriyajuneja / Action.js.hbs
Created February 27, 2020 06:59
Plop JS configuration file and templates for functional components
import { {{pascalCase name}} } from "services/{{pascalCase name}}";
import { mutation } from "./mutations";
const handleError = err => {
console.log("Error in {{pascalCase name}} action : ", err);
};
// Actions
export const get{{pascalCase name}}ListRequest = (payload) => async dispatch => {
try {