console.clear(); //people droppig a forn (action creator) const creatPolicy =(name,amount)=>{ return{//action(form in our analogy) type:'CREATE_Policy', payload:{ name,amount } } } const deletePolicy =(name,amount)=>{ return{//action(form in our analogy) type:'DELETE_Policy', payload:{ name,amount } } } const creatClaim =(name,amountOfMoneytoCollect)=>{ return{//action(form in our analogy) type:'CREATE_CLAIM', payload:{ name,amount } } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter