Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Bram Borggreve
Added: Mar 24, 2020 4:25 PM
Views: 4
Tags: no tags
  1. handleAction({ action, payload }: { action: string; payload?: any }) {
  2.     switch (action) {
  3.       default:
  4.         console.log(`Unhandled action`, { action, payload })
  5.     }
  6.   }