JSFiddle - React, Tailwind, and code Playground

by evgkch

JavaScript

const TRANSFER_QTY = 'TRANSFER_QTY';
const TRANSFER_OPTION = 'TRANSFER_OPTION';

const refreshStore = (qty) => (option) =>
	return qty;

const test = (state, action) => {
	switch (action.type) {
  	case TRANSFER_QTY:
    	return refreshStore(action.payload);
    case TRANSFER_OPTION:
    	return 
  }
}