Sha256: 3ed395a87134f818c1259d8ccbd2f9da3515844e06d8bdfa94598f5650e79ad4
Contents?: true
Size: 362 Bytes
Versions: 15
Compression:
Stored size: 362 Bytes
Contents
import { createStore } from "redux"; export default createStore((state = [], action) => { switch(action.type) { case "ERROR": return [...state, { message: action.message, type: "error" }]; case "NOTICE": return [...state, { message: action.message, type: "notice" }]; case "NEXT": return state.slice(1); default: return state; } });
Version data entries
15 entries across 15 versions & 1 rubygems