Skip to content

Instantly share code, notes, and snippets.

View markmcdermid's full-sized avatar
🤓

Mark McDermid markmcdermid

🤓
View GitHub Profile
const initialState = {
friends: [
{
id: 1,
name: 'Some Guy',
starred: false
}, {
id: 2,
name: 'Barack Obama',
starred: false
app.get(routes.employer.main, wrapWithCatch(handlers.getEmployers));
try {
doSomething()
} catch (e) {
console.log(e)
}
export const selectSubreddit = createAction(SELECT_SUBREDDIT);
export const invalidateSubreddit = createAction(INVALIDATE_SUBREDDIT, function (subreddit) {
return { subreddit };
});
export const requestPosts = createAction(REQUEST_POSTS, function (subreddit) {
return { subreddit: subreddit };
});