Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export interface Action {
type : string,
payload?: any
}
dispatch({type:’ADD_ARTICLE’,payload:{
link:’github.com/philipszdavido’,
points:90
}
})
dispatch({type:’LOAD_LINKS’})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment